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
test(cypress): fix clearpanretry and refundmanualupdate for bank of a… (#12589)
Vasanth6e4cadb99e0d
diff --git a/cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js b/cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.jsindex 6abddcdb5a..c953b19b00 100644--- a/cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js+++ b/cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js@@ -180,6 +180,7 @@ export const connectorDetails = {No3DSAutoCapture: {Request: {payment_method: "card",+ payment_method_type: "credit",payment_method_data: {card: successfulNo3DSCardDetails,},diff --git a/cypress-tests/cypress/e2e/spec/Payment/47-RefundManualUpdate.cy.js b/cypress-tests/cypress/e2e/spec/Payment/47-RefundManualUpdate.cy.jsindex a3d4ebfcf4..ff0f49862d 100644--- a/cypress-tests/cypress/e2e/spec/Payment/47-RefundManualUpdate.cy.js+++ b/cypress-tests/cypress/e2e/spec/Payment/47-RefundManualUpdate.cy.js@@ -105,7 +105,7 @@ describe("Refund Manual Update Tests", () => {const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"]["ManualRefundUpdate"];- cy.manualRefundStatusUpdateTest(data, globalState);+ cy.manualRefundStatusUpdateTest(globalState, data);if (!utils.should_continue_further(data)) {shouldContinue = false;}@@ -201,7 +201,7 @@ describe("Refund Manual Update Tests", () => {const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"]["ManualRefundUpdateErrorCode"];- cy.manualRefundStatusUpdateTest(data, globalState);+ cy.manualRefundStatusUpdateTest(globalState, data);if (!utils.should_continue_further(data)) {shouldContinue = false;}@@ -296,7 +296,7 @@ describe("Refund Manual Update Tests", () => {const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"]["ManualRefundUpdatePartialRefund"];- cy.manualRefundStatusUpdateTest(data, globalState);+ cy.manualRefundStatusUpdateTest(globalState, data);if (!utils.should_continue_further(data)) {shouldContinue = false;}@@ -390,7 +390,7 @@ describe("Refund Manual Update Tests", () => {const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"]["ManualRefundUpdateIdempotency"];- cy.manualRefundStatusUpdateTest(data, globalState);+ cy.manualRefundStatusUpdateTest(globalState, data);if (!utils.should_continue_further(data)) {shouldContinue = false;}@@ -407,7 +407,7 @@ describe("Refund Manual Update Tests", () => {const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"]["ManualRefundUpdateIdempotency"];- cy.manualRefundStatusUpdateTest(data, globalState);+ cy.manualRefundStatusUpdateTest(globalState, data);if (!utils.should_continue_further(data)) {shouldContinue = false;}@@ -501,7 +501,7 @@ describe("Refund Manual Update Tests", () => {const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"]["ManualRefundUpdateErrorCode"];- cy.manualRefundStatusUpdateTest(data, globalState);+ cy.manualRefundStatusUpdateTest(globalState, data);if (!utils.should_continue_further(data)) {shouldContinue = false;}@@ -518,7 +518,7 @@ describe("Refund Manual Update Tests", () => {const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"]["ManualRefundUpdateUnset"];- cy.manualRefundStatusUpdateTest(data, globalState);+ cy.manualRefundStatusUpdateTest(globalState, data);if (!utils.should_continue_further(data)) {shouldContinue = false;}diff --git a/cypress-tests/cypress/e2e/spec/Payment/54-ClearPanRetry.cy.js b/cypress-tests/cypress/e2e/spec/Payment/53-ClearPanRetry.cy.jssimilarity index 100%rename from cypress-tests/cypress/e2e/spec/Payment/54-ClearPanRetry.cy.jsrename to cypress-tests/cypress/e2e/spec/Payment/53-ClearPanRetry.cy.jsdiff --git a/cypress-tests/cypress/e2e/spec/Payment/53-DynamicFields.cy.js b/cypress-tests/cypress/e2e/spec/Payment/54-DynamicFields.cy.jssimilarity index 100%rename from cypress-tests/cypress/e2e/spec/Payment/53-DynamicFields.cy.jsrename to cypress-tests/cypress/e2e/spec/Payment/54-DynamicFields.cy.jsdiff --git a/cypress-tests/cypress/support/commands.js b/cypress-tests/cypress/support/commands.jsindex 873750663a..9a7e264f8f 100644--- a/cypress-tests/cypress/support/commands.js+++ b/cypress-tests/cypress/support/commands.js@@ -7295,7 +7295,10 @@ Cypress.Commands.add("api-key": adminApiKey,"X-Merchant-Id": merchantId,},- body: refundManualUpdateRequestBody,+ body: {+ merchant_id: merchantId,+ ...refundManualUpdateRequestBody.Request,+ },failOnStatusCode: false,}).then((response) => {logRequestId(response.headers["x-request-id"]);diff --git a/cypress-tests/package.json b/cypress-tests/package.jsonindex 186894a0d8..4c66f233fd 100644--- a/cypress-tests/package.json+++ b/cypress-tests/package.json@@ -9,6 +9,7 @@"cypress-e2e": "npx cypress run --e2e","cypress:ci": "npx cypress run --headless","cypress:misc": "cypress run --headless --spec 'cypress/e2e/spec/Misc/**/*'",+ "cypress:modular-pm-service": "cypress run --headless --spec 'cypress/e2e/spec/ModularPmService/**/*'","cypress:payment-method-list": "cypress run --headless --spec 'cypress/e2e/spec/PaymentMethodList/**/*'","cypress:payments": "cypress run --headless --spec 'cypress/e2e/spec/Payment/**/*'","cypress:payouts": "cypress run --headless --spec 'cypress/e2e/spec/Payout/**/*'",