test(cypress): add acquirer-specific configurations coverage for business profiles#13154
test(cypress): add acquirer-specific configurations coverage for business profiles#13154vasanthp-jus wants to merge 4 commits into
Conversation
…ness profiles - New spec: cypress-tests/cypress/e2e/spec/Payment/56-AcquirerConfigs.cy.js - Config keys: none (profile-level feature — no connector config modified) - Connectors regressed: bankofamerica - Parent issue: COR-250
Changed Files
|
Automated Code Review ResultsTeam: Test Automation (Cypress) Findings Summary✅ Comprehensive Acquirer Config Test Coverage Review Notes🎯 Test Structure Assessment
🔍 Commands Implementation Quality
Cypress.Commands.add("createAcquirerConfigTest", (body, globalState, ...)Good validation of response structure:
💡 Enhancement Suggestion Consider adding negative test cases for:
📊 Fixture Data Quality
Overall Assessment: Solid test coverage for a complex configuration feature. Well-organized, follows existing patterns. Approved. |
- deleteBusinessProfileTest accepts optional profilePrefix param (backward compatible)
- Move cleanup from context("Cleanup") to after() hook at describe level
- Add profileAcquirerId to Context 3 beforeEach skip guard
- Rename fixture key to acquirerConfigErrorUpdateNonExistentId
- Add inline comments for acquirer_bin and acquirer_country_code test data
Co-Authored-By: Paperclip <noreply@paperclip.ing>
Type of Change
Description
New spec file
cypress/e2e/spec/Payment/56-AcquirerConfigs.cy.jscovering acquirer-specific configurations (acquirer_config_map) on business profiles via thePOST /profile_acquirerendpoint. The spec includes 10 test cases covering happy-path create/update/retrieve flows with multi-network support, negative cases (404 for non-existent IDs, 422 for missing network field), and cleanup. Three new Cypress commands were added tocommands.js(createAcquirerConfigTest,updateAcquirerConfigTest,retrieveBusinessProfileTest) and fixture data for Visa/Mastercard acquirer configs was added tobusiness-profile.json.Additional Changes
No API schema, database schema, or application configuration changes. This is a test-only PR confined to
cypress-tests/.Motivation and Context
The
acquirer_config_mapfield on business profiles was previously not covered by Cypress E2E tests (cypress_status: not_covered). This spec fills that gap by exercising the full CRUD lifecycle for acquirer-specific configurations via thePOST /profile_acquirerendpoint, including multi-network support and error handling. Modeled on the existing28-BusinessProfileConfigs.cy.jsspec using Pattern B (afterEach cleanup).Closes #13153
Related to COR-250 (Paperclip pipeline issue)
How did you test it?
Full regression suite was executed against the changed connector(s). All
RUNNER_RESULTblocks from the QA pipeline are included verbatim below.Changed-spec verification —
bankofamericaSummary
Checklist
cargo +nightly fmt --allcargo clippy