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 deleteBusinessProfileTest to use admin API key (#11966)
HS-QUALIBOTd3442aa4a1c4
diff --git a/cypress-tests/cypress/e2e/spec/Payment/47-DynamicFields.cy.js b/cypress-tests/cypress/e2e/spec/Payment/47-DynamicFields.cy.jsindex 1670aff533..3291eb1a64 100644--- a/cypress-tests/cypress/e2e/spec/Payment/47-DynamicFields.cy.js+++ b/cypress-tests/cypress/e2e/spec/Payment/47-DynamicFields.cy.js@@ -65,10 +65,6 @@ describe("Dynamic Fields Verification", () => {]["PmListResponse"]["pmListDynamicFieldWithoutBilling"];cy.paymentMethodListTestWithRequiredFields(data, globalState);});-- it("Delete Business Profile", () => {- cy.deleteBusinessProfileTest(globalState);- });});@@ -172,6 +168,10 @@ describe("Dynamic Fields Verification", () => {]["PmListResponse"]["pmListDynamicFieldWithEmail"];cy.paymentMethodListTestWithRequiredFields(data, globalState);});++ it("Delete Business Profile", () => {+ cy.deleteBusinessProfileTest(globalState);+ });});});});diff --git a/cypress-tests/cypress/support/commands.js b/cypress-tests/cypress/support/commands.jsindex 410c54ec32..ef2e2fa08e 100644--- a/cypress-tests/cypress/support/commands.js+++ b/cypress-tests/cypress/support/commands.js@@ -256,7 +256,7 @@ function createUcsConfigs(globalState, flow, type) {}Cypress.Commands.add("deleteBusinessProfileTest", (globalState) => {- const apiKey = globalState.get("apiKey");+ const adminApiKey = globalState.get("adminApiKey");const baseUrl = globalState.get("baseUrl");const profileId = globalState.get("profileId");const merchantId = globalState.get("merchantId");@@ -273,7 +273,7 @@ Cypress.Commands.add("deleteBusinessProfileTest", (globalState) => {headers: {Accept: "application/json","Content-Type": "application/json",- "api-key": apiKey,+ "api-key": adminApiKey,},failOnStatusCode: false,}).then((response) => {