Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(cypress): Fix payouts failing (#5239)

Pa1NarK864d53c6d20e
diff --git a/cypress-tests/cypress/e2e/PayoutTest/00003-CardTest.cy.js b/cypress-tests/cypress/e2e/PayoutTest/00003-CardTest.cy.js
index 1dc96e4bd2..5e97e2ede8 100644
--- a/cypress-tests/cypress/e2e/PayoutTest/00003-CardTest.cy.js
+++ b/cypress-tests/cypress/e2e/PayoutTest/00003-CardTest.cy.js
@@ -22,6 +22,12 @@ describe("[Payout] Cards", () => {
cy.task("setGlobalState", globalState.data);
});
+ beforeEach(function () {
+ if (!should_continue) {
+ this.skip();
+ }
+ });
+
context("Payout Card with Auto Fulfill", () => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
diff --git a/cypress-tests/cypress/e2e/PayoutTest/00004-BankTransfer.cy.js b/cypress-tests/cypress/e2e/PayoutTest/00004-BankTransfer.cy.js
index 5a623b7750..1a19847983 100644
--- a/cypress-tests/cypress/e2e/PayoutTest/00004-BankTransfer.cy.js
+++ b/cypress-tests/cypress/e2e/PayoutTest/00004-BankTransfer.cy.js
@@ -74,6 +74,12 @@ describe("[Payout] [Bank Transfer - SEPA]", () => {
cy.task("setGlobalState", globalState.data);
});
+ beforeEach(function () {
+ if (!should_continue) {
+ this.skip();
+ }
+ });
+
context("[Payout] [Bank transfer - SEPA] Auto Fulfill", () => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails