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

fix(cypress): `api_key` check in cypress (#5787)

Pa1NarK3126c1ff1e1a
diff --git a/cypress-tests/cypress/support/commands.js b/cypress-tests/cypress/support/commands.js
index c5708c258b..3c7cbad2f9 100644
--- a/cypress-tests/cypress/support/commands.js
+++ b/cypress-tests/cypress/support/commands.js
@@ -253,7 +253,7 @@ Cypress.Commands.add("apiKeyListCall", (globalState) => {
.and.not.empty;
} else if (base_url.includes("localhost")) {
expect(response.body[key]).to.have.property("key_id").include("dev_")
- .and;
+ .and.not.empty;
}
expect(response.body[key].merchant_id).to.equal(merchant_id);
}