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): remove unsupported manual confirm tests (#5223)

Pa1NarK549c293c3f0f
diff --git a/cypress-tests/cypress/e2e/PayoutTest/00003-CardTest.cy.js b/cypress-tests/cypress/e2e/PayoutTest/00003-CardTest.cy.js
index 54fa7f31d2..1dc96e4bd2 100644
--- a/cypress-tests/cypress/e2e/PayoutTest/00003-CardTest.cy.js
+++ b/cypress-tests/cypress/e2e/PayoutTest/00003-CardTest.cy.js
@@ -22,14 +22,15 @@ 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
+
+ beforeEach(function () {
+ if (!should_continue) {
+ this.skip();
+ }
+ });
+
it("confirm-payout-call-with-auto-fulfill-test", () => {
let data = utils.getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
@@ -57,6 +58,12 @@ describe("[Payout] Cards", () => {
context("Payout Card with Manual Fulfill - Create Confirm", () => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
+ beforeEach(function () {
+ if (!should_continue) {
+ this.skip();
+ }
+ });
+
it("confirm-payout-call-with-manual-fulfill-test", () => {
let data = utils.getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
@@ -90,52 +97,4 @@ describe("[Payout] Cards", () => {
cy.retrievePayoutCallTest(globalState);
});
});
-
- context("Payout Card with Manual Fulfill - Create Intent + Confirm", () => {
- let should_continue = true; // variable that will be used to skip tests if a previous test fails
-
- it("create-payout-call", () => {
- let data = utils.getConnectorDetails(globalState.get("connectorId"))[
- "card_pm"
- ]["Create"];
- let req_data = data["Request"];
- let res_data = data["Response"];
- cy.createConfirmPayoutTest(
- createPayoutBody,
- req_data,
- res_data,
- false,
- false,
- globalState
- );
- if (should_continue)
- should_continue = utils.should_continue_further(res_data);
- });
-
- it("confirm-payout-call", () => {
- let data = utils.getConnectorDetails(globalState.get("connectorId"))[
- "card_pm"
- ]["Confirm"];
- let req_data = data["Request"];
- let res_data = data["Response"];
- cy.updatePayoutCallTest({}, req_data, res_data, false, globalState);
- if (should_continue)
- should_continue = utils.should_continue_further(res_data);
- });
-
- it("fulfill-payout-call-test", () => {
- let data = utils.getConnectorDetails(globalState.get("connectorId"))[
- "card_pm"
- ]["Fulfill"];
- let req_data = data["Request"];
- let res_data = data["Response"];
- cy.fulfillPayoutCallTest({}, req_data, res_data, globalState);
- if (should_continue)
- should_continue = utils.should_continue_further(res_data);
- });
-
- it("retrieve-payout-call-test", () => {
- cy.retrievePayoutCallTest(globalState);
- });
- });
});
diff --git a/cypress-tests/cypress/e2e/PayoutTest/00004-BankTransfer.cy.js b/cypress-tests/cypress/e2e/PayoutTest/00004-BankTransfer.cy.js
index 9001cb212b..5a623b7750 100644
--- a/cypress-tests/cypress/e2e/PayoutTest/00004-BankTransfer.cy.js
+++ b/cypress-tests/cypress/e2e/PayoutTest/00004-BankTransfer.cy.js
@@ -74,15 +74,15 @@ 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
+ beforeEach(function () {
+ if (!should_continue) {
+ this.skip();
+ }
+ });
+
it("confirm-payout-call-with-auto-fulfill-test", () => {
let data = utils.getConnectorDetails(globalState.get("connectorId"))[
"bank_transfer_pm"
@@ -110,102 +110,23 @@ describe("[Payout] [Bank Transfer - SEPA]", () => {
context("[Payout] [Bank transfer - SEPA] Manual Fulfill", () => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
- it("confirm-payout-call-with-manual-fulfill-test", () => {
- let data = utils.getConnectorDetails(globalState.get("connectorId"))[
- "bank_transfer_pm"
- ]["sepa"]["Confirm"];
- let req_data = data["Request"];
- let res_data = data["Response"];
- cy.createConfirmPayoutTest(
- createPayoutBody,
- req_data,
- res_data,
- true,
- false,
- globalState
- );
- if (should_continue)
- should_continue = utils.should_continue_further(res_data);
- });
-
- it("fulfill-payout-call-test", () => {
- let data = utils.getConnectorDetails(globalState.get("connectorId"))[
- "bank_transfer_pm"
- ]["sepa"]["Fulfill"];
- let req_data = data["Request"];
- let res_data = data["Response"];
- cy.fulfillPayoutCallTest({}, req_data, res_data, globalState);
- if (should_continue)
- should_continue = utils.should_continue_further(res_data);
- });
-
- it("retrieve-payout-call-test", () => {
- cy.retrievePayoutCallTest(globalState);
- });
- });
-
- context("[Payout] [Bank transfer - SEPA] Manual Confirm", () => {
- let should_continue = true; // variable that will be used to skip tests if a previous test fails
-
- it("confirm-payout-call-with-manual-confirm-test", () => {
- let data = utils.getConnectorDetails(globalState.get("connectorId"))[
- "bank_transfer_pm"
- ]["sepa"]["Create"];
- let req_data = data["Request"];
- let res_data = data["Response"];
- cy.createConfirmPayoutTest(
- createPayoutBody,
- req_data,
- res_data,
- false,
- true,
- globalState
- );
- if (should_continue)
- should_continue = utils.should_continue_further(res_data);
+ beforeEach(function () {
+ if (!should_continue) {
+ this.skip();
+ }
});
- it("confirm-payout-call", () => {
+ it("confirm-payout-call-with-manual-fulfill-test", () => {
let data = utils.getConnectorDetails(globalState.get("connectorId"))[
"bank_transfer_pm"
]["sepa"]["Confirm"];
let req_data = data["Request"];
let res_data = data["Response"];
- cy.updatePayoutCallTest({}, req_data, res_data, false, globalState);
- if (should_continue)
- should_continue = utils.should_continue_further(res_data);
- });
-
- it("fulfill-payout-call-test", () => {
- let data = utils.getConnectorDetails(globalState.get("connectorId"))[
- "bank_transfer_pm"
- ]["sepa"]["Fulfill"];
- let req_data = data["Request"];
- let res_data = data["Response"];
- cy.fulfillPayoutCallTest({}, req_data, res_data, globalState);
- if (should_continue)
- should_continue = utils.should_continue_further(res_data);
- });
-
- it("retrieve-payout-call-test", () => {
- cy.retrievePayoutCallTest(globalState);
- });
- });
-
- context("[Payout] [Bank transfer - SEPA] Manual", () => {
- let should_continue = true; // variable that will be used to skip tests if a previous test fails
-
- it("create-payout-call", () => {
- let data = utils.getConnectorDetails(globalState.get("connectorId"))[
- "bank_transfer_pm"
- ]["sepa"]["Create"];
- let req_data = data["Request"];
- let res_data = data["Response"];
cy.createConfirmPayoutTest(
createPayoutBody,
req_data,
res_data,
- false,
+ true,
false,
globalState
);
@@ -213,17 +134,6 @@ describe("[Payout] [Bank Transfer - SEPA]", () => {
should_continue = utils.should_continue_further(res_data);
});
- it("confirm-payout-call", () => {
- let data = utils.getConnectorDetails(globalState.get("connectorId"))[
- "bank_transfer_pm"
- ]["sepa"]["Confirm"];
- let req_data = data["Request"];
- let res_data = data["Response"];
- cy.updatePayoutCallTest({}, req_data, res_data, false, globalState);
- if (should_continue)
- should_continue = utils.should_continue_further(res_data);
- });
-
it("fulfill-payout-call-test", () => {
let data = utils.getConnectorDetails(globalState.get("connectorId"))[
"bank_transfer_pm"
diff --git a/cypress-tests/cypress/e2e/PayoutTest/00005-SavePayout.cy.js b/cypress-tests/cypress/e2e/PayoutTest/00005-SavePayout.cy.js
index 222ecc57ba..f945a9b5a3 100644
--- a/cypress-tests/cypress/e2e/PayoutTest/00005-SavePayout.cy.js
+++ b/cypress-tests/cypress/e2e/PayoutTest/00005-SavePayout.cy.js
@@ -84,6 +84,12 @@ describe("[Payout] Saved Card", () => {
() => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
+ beforeEach(function () {
+ if (!should_continue) {
+ this.skip();
+ }
+ });
+
it("create customer", () => {
cy.createCustomerCallTest(customerCreateBody, globalState);
});
@@ -216,6 +222,12 @@ describe("[Payout] Saved Bank transfer", () => {
() => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
+ beforeEach(function () {
+ if (!should_continue) {
+ this.skip();
+ }
+ });
+
it("create customer", () => {
cy.createCustomerCallTest(customerCreateBody, globalState);
});