Skip to content

Commit

Permalink
Added assertion in confirmBankRedirectCallTest instead of 00018-BankR…
Browse files Browse the repository at this point in the history
…edirect.cy.js
  • Loading branch information
Arindam Sahoo authored and Arindam Sahoo committed Jan 25, 2025
1 parent f613169 commit 0de5108
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,7 @@ describe("Bank Redirect tests", () => {
data,
true,
globalState
).then(() => {
if (globalState.get("connectorId") === "adyen") {
expect(data.Response.body.error_message).to.equal(
"Required object 'paymentMethod' is not provided."
);
}
});
);

if (shouldContinue) shouldContinue = utils.should_continue_further(data);
});
Expand Down
7 changes: 7 additions & 0 deletions cypress-tests/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -1551,6 +1551,13 @@ Cypress.Commands.add(
expect(response.body.error_code).to.equal(
resData.body.error_code
);
if (
response.body.payment_method_type === "sofort"
) {
expect(response.body.error_message).to.equal(
resData.body.error_message
);
}
}
} else {
throw new Error(
Expand Down

0 comments on commit 0de5108

Please sign in to comment.