Feature Description
Add Cypress E2E test coverage for acquirer-specific configurations (acquirer_config_map) on business profiles via the POST /profile_acquirer endpoint.
- Endpoint:
POST /business_profile (acquirer_config_map), POST /profile_acquirer, GET /account/{merchant_id}/business_profile/{profile_id}
- Source:
business_profile.rs:acquirer_config_map
- Current status:
not_covered
Possible Implementation
New spec file cypress/e2e/spec/Payment/56-AcquirerConfigs.cy.js covering:
- Create Business Profile (prerequisite)
- Create Acquirer Config (Visa, is_default=true) — verify country code US->840
- Update Acquirer Config — verify updated fields
- Retrieve Business Profile — verify acquirer_config_bucket
- Create Second Acquirer Config (Mastercard, is_default=false)
- Retrieve Business Profile — verify both configs
- Create with non-existent profile_id → 404 HE_02
- Update with non-existent profile_acquirer_id → 404 HE_02
- Update without network field → 422 IR_06
- Delete Business Profile (cleanup)
3 new Cypress commands added to commands.js:
createAcquirerConfigTest
updateAcquirerConfigTest
retrieveBusinessProfileTest
Fixture data for Visa/Mastercard acquirer configs added to business-profile.json.
Pattern B (afterEach) spec, modeled on existing 28-BusinessProfileConfigs.cy.js.
Have you spent some time checking if this feature request has been raised before?
Have you read the Contributing Guidelines?
Are you willing to submit a PR?
Yes, I am willing to submit a PR!
Feature Description
Add Cypress E2E test coverage for acquirer-specific configurations (
acquirer_config_map) on business profiles via thePOST /profile_acquirerendpoint.POST /business_profile(acquirer_config_map),POST /profile_acquirer,GET /account/{merchant_id}/business_profile/{profile_id}business_profile.rs:acquirer_config_mapnot_coveredPossible Implementation
New spec file
cypress/e2e/spec/Payment/56-AcquirerConfigs.cy.jscovering:3 new Cypress commands added to
commands.js:createAcquirerConfigTestupdateAcquirerConfigTestretrieveBusinessProfileTestFixture data for Visa/Mastercard acquirer configs added to
business-profile.json.Pattern B (afterEach) spec, modeled on existing
28-BusinessProfileConfigs.cy.js.Have you spent some time checking if this feature request has been raised before?
Have you read the Contributing Guidelines?
Are you willing to submit a PR?
Yes, I am willing to submit a PR!