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): reset eligibility profile blocklist guards with put (#14730)
Ayush Anandd27817712d14
diff --git a/cypress-tests/cypress/e2e/spec/Payment/35-PaymentsEligibilityAPI.cy.js b/cypress-tests/cypress/e2e/spec/Payment/35-PaymentsEligibilityAPI.cy.jsindex e4f399bfbd..8e41e4ba68 100644--- a/cypress-tests/cypress/e2e/spec/Payment/35-PaymentsEligibilityAPI.cy.js+++ b/cypress-tests/cypress/e2e/spec/Payment/35-PaymentsEligibilityAPI.cy.js@@ -56,7 +56,12 @@ describe("Payments Eligibility API with Blocklist", () => {after("cleanup superposition config + flush global state", () => {if (!specShouldSkip && globalState?.get("merchantId")) {if (globalState.get("profileId")) {- cy.deleteSuperpositionConfig(globalState, profileBlocklistContext());+ cy.setSuperpositionConfig(+ globalState,+ "payments.payment_blocklist_guard",+ false,+ profileBlocklistContext()+ );}cy.setSuperpositionConfig(globalState,@@ -118,7 +123,7 @@ describe("Payments Eligibility API with Blocklist", () => {});context("Profile and merchant guard overrides", () => {- it("should disable the guard for a profile and inherit the enabled merchant guard after cleanup", () => {+ it("should disable the guard for a profile and deny payment after explicitly re-enabling it", () => {cy.setSuperpositionConfig(globalState,"payments.payment_blocklist_guard",@@ -131,7 +136,12 @@ describe("Payments Eligibility API with Blocklist", () => {globalState);- cy.deleteSuperpositionConfig(globalState, profileBlocklistContext());+ cy.setSuperpositionConfig(+ globalState,+ "payments.payment_blocklist_guard",+ true,+ profileBlocklistContext()+ );cy.paymentsEligibilityCheck(fixtures.eligibilityCheckBody,connectorDetails.eligibility_api.BlocklistedCardDenied,@@ -139,7 +149,7 @@ describe("Payments Eligibility API with Blocklist", () => {);});- it("should enable the guard for a profile and inherit the disabled merchant guard after cleanup", () => {+ it("should enable the guard for a profile and allow payment after explicitly disabling it", () => {cy.setSuperpositionConfig(globalState,"payments.payment_blocklist_guard",@@ -158,7 +168,12 @@ describe("Payments Eligibility API with Blocklist", () => {globalState);- cy.deleteSuperpositionConfig(globalState, profileBlocklistContext());+ cy.setSuperpositionConfig(+ globalState,+ "payments.payment_blocklist_guard",+ false,+ profileBlocklistContext()+ );cy.paymentsEligibilityCheck(fixtures.eligibilityCheckBody,blocklistedCardAllowed,