Skip to content

Commit

Permalink
added conditional error message assertion for Adyen in Sofort redirec…
Browse files Browse the repository at this point in the history
…t flow
  • Loading branch information
Arindam Sahoo authored and Arindam Sahoo committed Jan 24, 2025
1 parent 9cc0bb7 commit 51d6382
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ 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

0 comments on commit 51d6382

Please sign in to comment.