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
fix(cypress): create and clean up a dedicated customer per ZeroAuthMandate context (#14224)
HS-QUALIBOTdcd284324e8a
diff --git a/cypress-tests/cypress/e2e/spec/Payment/15-ZeroAuthMandate.cy.js b/cypress-tests/cypress/e2e/spec/Payment/15-ZeroAuthMandate.cy.jsindex f42a5bdd72..6d4fbbc995 100644--- a/cypress-tests/cypress/e2e/spec/Payment/15-ZeroAuthMandate.cy.js+++ b/cypress-tests/cypress/e2e/spec/Payment/15-ZeroAuthMandate.cy.js@@ -50,6 +50,10 @@ describe("Card - SingleUse Mandates flow test", () => {}});+ it("Create Customer", () => {+ cy.createCustomerCallTest(fixtures.customerCreateBody, globalState);+ });+it("Create No 3DS Payment Intent", () => {const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"@@ -125,6 +129,10 @@ describe("Card - SingleUse Mandates flow test", () => {cy.retrievePaymentCallTest({ globalState, data });});++ it("Customer delete call", () => {+ cy.customerDeleteCall(globalState);+ });});context(@@ -221,6 +229,10 @@ describe("Card - SingleUse Mandates flow test", () => {cy.retrievePaymentCallTest({ globalState, data });});++ it("Customer delete call", () => {+ cy.customerDeleteCall(globalState);+ });});@@ -283,6 +295,12 @@ describe("Card - SingleUse Mandates flow test", () => {cy.retrievePaymentCallTest({ globalState, data });});++ // No "Customer delete call" here: the CIT above uses payment_type+ // "setup_mandate", which creates a Mandate record that stays Active.+ // delete_customer refuses to delete a customer with an active mandate+ // (crates/router/src/core/customers.rs), so this customer can't be+ // cleaned up this way.});context(@@ -412,6 +430,12 @@ describe("Card - SingleUse Mandates flow test", () => {cy.retrievePaymentCallTest({ globalState, data });});++ // No "Customer delete call" here: the CIT above uses payment_type+ // "setup_mandate", which creates a Mandate record that stays Active.+ // delete_customer refuses to delete a customer with an active mandate+ // (crates/router/src/core/customers.rs), so this customer can't be+ // cleaned up this way.});});