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

ci(cypress): Update cypress shadow mode rollout configs (#10689)

Ashish Kumar2a24942e01ff
diff --git a/cypress-tests/cypress/e2e/spec/Payment/00001-AccountCreate.cy.js b/cypress-tests/cypress/e2e/spec/Payment/00001-AccountCreate.cy.js
index 62f733d35a..da9014140c 100644
--- a/cypress-tests/cypress/e2e/spec/Payment/00001-AccountCreate.cy.js
+++ b/cypress-tests/cypress/e2e/spec/Payment/00001-AccountCreate.cy.js
@@ -22,8 +22,7 @@ describe("Account Create flow test", () => {
});
it("create-shadow-config-if-shadow-mode-enabled", () => {
- // Automatically create rollout configs and shadow config after successful merchant creation
+ // Shadow and rollout configs are now merged - create unified config with execution_mode: "shadow"
cy.createRolloutConfig(globalState);
- cy.createShadowRolloutConfig(globalState);
});
});
diff --git a/cypress-tests/cypress/support/commands.js b/cypress-tests/cypress/support/commands.js
index e59c4e44e0..25ee162f33 100644
--- a/cypress-tests/cypress/support/commands.js
+++ b/cypress-tests/cypress/support/commands.js
@@ -48,14 +48,16 @@ function createIndividualRolloutConfig(
const httpUrl = globalState.get("proxyHttp");
const httpsUrl = globalState.get("proxyHttps");
- const keySuffix = configType === "shadow" ? "_shadow" : "";
- const rolloutPercent = configType === "shadow" ? 0.9 : 0.1;
- const key = `ucs_rollout_config_${merchantId}_${connector}_${methodFlow}${keySuffix}`;
+ // Shadow and rollout configs are now merged - no key suffix needed
+ // Set rollout_percent to 1.0 to ensure flows go through
+ const rolloutPercent = 1.0;
+ const key = `ucs_rollout_config_${merchantId}_${connector}_${methodFlow}`;
const configValue = {
rollout_percent: rolloutPercent,
http_url: httpUrl,
https_url: httpsUrl,
+ execution_mode: "shadow",
};
const value = JSON.stringify(configValue);