Skip to content

test(cypress): add Dwolla ACH error-path coverage for dwolla#13170

Open
HS-QUALIBOT wants to merge 2 commits into
mainfrom
qa/PAYA-47
Open

test(cypress): add Dwolla ACH error-path coverage for dwolla#13170
HS-QUALIBOT wants to merge 2 commits into
mainfrom
qa/PAYA-47

Conversation

@HS-QUALIBOT

Copy link
Copy Markdown
Collaborator

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

This PR adds Cypress E2E test coverage for Dwolla ACH bank debit error-path flows on the dwolla connector. A new spec file (55-DwollaAchErrorPath.cy.js) covers ACH bank debit error-path scenarios including 400 IR_04 (payment method type not enabled) and 400 IR_06 (unknown field). A new connector config (Dwolla.js) was added, and Utils.js was updated to register the connector and add it to CONNECTOR_LISTS.INCLUDE.BANK_DEBIT_ERROR_PATH.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

No API, database, or configuration changes. All changes are within cypress-tests/.

Motivation and Context

This coverage was added to fill a gap in Dwolla connector test automation — ACH bank debit error-path scenarios were not previously covered by the Cypress regression suite. The original request was to add SEPA bank debit test cases for the Dwolla connector, with scope adjusted to ACH bank debit error-path testing. This ensures regressions in Dwolla ACH payment error handling are caught by CI.

How did you test it?

Full regression suite was executed against the changed connector(s). All RUNNER_RESULT blocks from the QA pipeline are included verbatim below.

Changed-spec verification — dwolla

RUNNER_RESULT:
  Connector: dwolla
  SpecFile: cypress/e2e/spec/Payment/55-DwollaAchErrorPath.cy.js
  TotalTests: 10, Passed: 10, Failed: 0, Skipped: 0
  OverallStatus: PASS
  Failures: NONE
  SkippedTests: NONE
  FlakeyTests: NONE
  BlockedReasons: NONE

Summary

Connector Specs Run Passed Failed Skipped Status
dwolla 10 10 0 0 PASS

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

Closes #13168
Related: PAYA-47 (Paperclip pipeline parent issue)

@HS-QUALIBOT HS-QUALIBOT added the S-test-ready Status: This PR is ready for cypress-tests label Jul 5, 2026
@HS-QUALIBOT HS-QUALIBOT requested a review from a team as a code owner July 5, 2026 20:14
@semanticdiff-com

semanticdiff-com Bot commented Jul 5, 2026

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  cypress-tests/cypress/e2e/configs/Payment/Dwolla.js  0% smaller
  cypress-tests/cypress/e2e/configs/Payment/Utils.js  0% smaller
  cypress-tests/cypress/e2e/spec/Payment/55-DwollaAchErrorPath.cy.js  0% smaller

- New spec: cypress/e2e/spec/Payment/55-DwollaAchErrorPath.cy.js
- Config keys: BANK_DEBIT_ERROR_PATH
- Connectors regressed: dwolla (Stripe is excluded — CI handles it)
- Parent issue: PAYA-47

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@github-actions github-actions Bot removed the S-test-ready Status: This PR is ready for cypress-tests label Jul 5, 2026
@XyneSpaces

Copy link
Copy Markdown

🚨 Critical issue with test data in Cypress config

The ach_bank_debit_data object contains what appears to be real or realistic bank account credentials (account_number, routing_number). Test data should use clearly fake values to avoid any security concerns.

Fix: Replace with obviously fake test data:

ach_bank_debit_data: {
  account_number: "1111222233334444",
  routing_number: "011000015",
  // ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[QA] Add Cypress coverage for Dwolla ACH error-path on dwolla

2 participants