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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
refactor(cypress): pass `connector_type` externally (#5522)
Pa1NarK7743255cd861
diff --git a/cypress-tests/cypress/e2e/PaymentMethodListTest/00000-PaymentMethodListTests.cy.js b/cypress-tests/cypress/e2e/PaymentMethodListTest/00000-PaymentMethodListTests.cy.jsindex 70774af46d..5b73327b18 100644--- a/cypress-tests/cypress/e2e/PaymentMethodListTest/00000-PaymentMethodListTests.cy.js+++ b/cypress-tests/cypress/e2e/PaymentMethodListTest/00000-PaymentMethodListTests.cy.js@@ -44,6 +44,7 @@ describe("Payment Method list using Constraint Graph flow tests", () => {// stripe connector create with ideal enabledit("connector-create-call-test", () => {cy.createNamedConnectorCallTest(+ "payment_processor",createConnectorBody,bank_redirect_ideal_enabled,globalState,@@ -54,6 +55,7 @@ describe("Payment Method list using Constraint Graph flow tests", () => {// cybersource connector create with card credit enabledit("connector-create-call-test", () => {cy.createNamedConnectorCallTest(+ "payment_processor",createConnectorBody,card_credit_enabled,globalState,@@ -120,6 +122,7 @@ describe("Payment Method list using Constraint Graph flow tests", () => {// stripe connector create with ideal enabledit("connector-create-call-test", () => {cy.createNamedConnectorCallTest(+ "payment_processor",createConnectorBody,bank_redirect_ideal_enabled,globalState,@@ -130,6 +133,7 @@ describe("Payment Method list using Constraint Graph flow tests", () => {// cybersource connector create with card credit enabled in USDit("connector-create-call-test", () => {cy.createNamedConnectorCallTest(+ "payment_processor",createConnectorBody,card_credit_enabled_in_USD,globalState,@@ -196,6 +200,7 @@ describe("Payment Method list using Constraint Graph flow tests", () => {// stripe connector create with credit enabled for USit("connector-create-call-test", () => {cy.createNamedConnectorCallTest(+ "payment_processor",createConnectorBody,card_credit_enabled_in_US,globalState,@@ -206,6 +211,7 @@ describe("Payment Method list using Constraint Graph flow tests", () => {// cybersource connector create with card credit enabled in USit("connector-create-call-test", () => {cy.createNamedConnectorCallTest(+ "payment_processor",createConnectorBody,card_credit_enabled_in_US,globalState,@@ -272,6 +278,7 @@ describe("Payment Method list using Constraint Graph flow tests", () => {// stripe connector create with ideal enabledit("connector-create-call-test", () => {cy.createNamedConnectorCallTest(+ "payment_processor",createConnectorBody,bank_redirect_ideal_enabled,globalState,@@ -282,6 +289,7 @@ describe("Payment Method list using Constraint Graph flow tests", () => {// cybersource connector create with ideal enabledit("connector-create-call-test", () => {cy.createNamedConnectorCallTest(+ "payment_processor",createConnectorBody,bank_redirect_ideal_enabled,globalState,@@ -350,6 +358,7 @@ describe("Payment Method list using Constraint Graph flow tests", () => {// stripe connector create with card credit enabledit("connector-create-call-test", () => {cy.createNamedConnectorCallTest(+ "payment_processor",createConnectorBody,card_credit_enabled,globalState,@@ -360,6 +369,7 @@ describe("Payment Method list using Constraint Graph flow tests", () => {// cybersource connector create with card credit and ideal enabledit("connector-create-call-test", () => {cy.createNamedConnectorCallTest(+ "payment_processor",createConnectorBody,bank_redirect_ideal_and_credit_enabled,globalState,@@ -427,6 +437,7 @@ describe("Payment Method list using Constraint Graph flow tests", () => {// stripe connector create with card credit enabledit("connector-create-call-test", () => {cy.createNamedConnectorCallTest(+ "payment_processor",createConnectorBody,card_credit_enabled,globalState,@@ -434,9 +445,10 @@ describe("Payment Method list using Constraint Graph flow tests", () => {);});- // cybersource connector create with card credit+ // cybersource connector create with card creditit("connector-create-call-test", () => {cy.createNamedConnectorCallTest(+ "payment_processor",createConnectorBody,card_credit_enabled,globalState,@@ -503,6 +515,7 @@ describe("Payment Method list using Constraint Graph flow tests", () => {// stripe connector create with ideal enabledit("connector-create-call-test", () => {cy.createNamedConnectorCallTest(+ "payment_processor",createConnectorBody,bank_redirect_ideal_enabled,globalState,@@ -513,6 +526,7 @@ describe("Payment Method list using Constraint Graph flow tests", () => {// cybersource connector create with card credit enabledit("connector-create-call-test", () => {cy.createNamedConnectorCallTest(+ "payment_processor",createConnectorBody,card_credit_enabled,globalState,diff --git a/cypress-tests/cypress/e2e/PaymentTest/00002-ConnectorCreate.cy.js b/cypress-tests/cypress/e2e/PaymentTest/00002-ConnectorCreate.cy.jsindex 0174fd4ef6..7a8b7b6330 100644--- a/cypress-tests/cypress/e2e/PaymentTest/00002-ConnectorCreate.cy.js+++ b/cypress-tests/cypress/e2e/PaymentTest/00002-ConnectorCreate.cy.js@@ -16,6 +16,7 @@ describe("Connector Account Create flow test", () => {it("connector-create-call-test", () => {cy.createConnectorCallTest(+ "payment_processor",fixtures.createConnectorBody,payment_methods_enabled,globalStatediff --git a/cypress-tests/cypress/e2e/PayoutTest/00002-ConnectorCreate.cy.js b/cypress-tests/cypress/e2e/PayoutTest/00002-ConnectorCreate.cy.jsindex 0ff3fab06c..8bcff83685 100644--- a/cypress-tests/cypress/e2e/PayoutTest/00002-ConnectorCreate.cy.js+++ b/cypress-tests/cypress/e2e/PayoutTest/00002-ConnectorCreate.cy.js@@ -14,6 +14,10 @@ describe("Connector Account Create flow test", () => {});it("connector-create-call-test", () => {- cy.createPayoutConnectorCallTest(fixtures.createConnectorBody, globalState);+ cy.createPayoutConnectorCallTest(+ "payout_processor",+ fixtures.createConnectorBody,+ globalState+ );});});diff --git a/cypress-tests/cypress/fixtures/create-connector-body.json b/cypress-tests/cypress/fixtures/create-connector-body.jsonindex bde183ecd6..5e0ce73aed 100644--- a/cypress-tests/cypress/fixtures/create-connector-body.json+++ b/cypress-tests/cypress/fixtures/create-connector-body.json@@ -1,5 +1,4 @@{- "connector_type": "fiz_operations","connector_name": "stripe","business_country": "US","business_label": "default",diff --git a/cypress-tests/cypress/support/commands.js b/cypress-tests/cypress/support/commands.jsindex 7236cf7875..fe26380719 100644--- a/cypress-tests/cypress/support/commands.js+++ b/cypress-tests/cypress/support/commands.js@@ -83,12 +83,14 @@ Cypress.Commands.add("apiKeyCreateTest", (apiKeyCreateBody, globalState) => {Cypress.Commands.add("createNamedConnectorCallTest",(+ connectorType,createConnectorBody,payment_methods_enabled,globalState,connectorName) => {const merchantId = globalState.get("merchantId");+ createConnectorBody.connector_type = connectorType;createConnectorBody.connector_name = connectorName;createConnectorBody.payment_methods_enabled = payment_methods_enabled;// readFile is used to read the contents of the file and it always returns a promise ([Object Object]) due to its asynchronous nature@@ -134,8 +136,14 @@ Cypress.Commands.add(Cypress.Commands.add("createConnectorCallTest",- (createConnectorBody, payment_methods_enabled, globalState) => {+ (+ connectorType,+ createConnectorBody,+ payment_methods_enabled,+ globalState+ ) => {const merchantId = globalState.get("merchantId");+ createConnectorBody.connector_type = connectorType;createConnectorBody.connector_name = globalState.get("connectorId");createConnectorBody.payment_methods_enabled = payment_methods_enabled;// readFile is used to read the contents of the file and it always returns a promise ([Object Object]) due to its asynchronous nature@@ -191,9 +199,10 @@ Cypress.Commands.add(Cypress.Commands.add("createPayoutConnectorCallTest",- (createConnectorBody, globalState) => {+ (connectorType, createConnectorBody, globalState) => {const merchantId = globalState.get("merchantId");let connectorName = globalState.get("connectorId");+ createConnectorBody.connector_type = connectorType;createConnectorBody.connector_name = connectorName;createConnectorBody.connector_type = "payout_processor";// readFile is used to read the contents of the file and it always returns a promise ([Object Object]) due to its asynchronous nature