diff --git a/integration-test/src/step_definitions/receipt_pdf_datastore_step.js b/integration-test/src/step_definitions/receipt_pdf_datastore_step.js index 86027757..55fa4e59 100644 --- a/integration-test/src/step_definitions/receipt_pdf_datastore_step.js +++ b/integration-test/src/step_definitions/receipt_pdf_datastore_step.js @@ -122,7 +122,7 @@ Then('the receipt has not the status {string}', function (targetStatus) { Then("the receipt has not a datastore reason error message", function(){ let receiptResponse = this.responseToCheck.resources[0]; if(receiptResponse?.reasonErr.message){ - let booleanResponseErr = receiptResponse.reasonErr.message.includes("BizEventToReceiptService") || !receiptResponse?.event?.mount; + let booleanResponseErr = receiptResponse.reasonErr.message.includes("BizEventToReceiptService") || !receiptResponse?.eventData?.amount; assert.strictEqual(booleanResponseErr, false); }