Skip to content

test(cypress): add imerchantsolutions connector test cases#13343

Open
HS-QUALIBOT wants to merge 1 commit into
juspay:mainfrom
HS-QUALIBOT:qa/BAN-262
Open

test(cypress): add imerchantsolutions connector test cases#13343
HS-QUALIBOT wants to merge 1 commit into
juspay:mainfrom
HS-QUALIBOT:qa/BAN-262

Conversation

@HS-QUALIBOT

Copy link
Copy Markdown
Collaborator

Type of Change

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

Description

Add Cypress test configuration for the imerchantsolutions connector (Beta integration, UCS-only routing).

  • New file: cypress-tests/cypress/e2e/configs/Payment/Imerchantsolutions.js (592 lines) — full card_pm config with No3DS auto/manual capture, refunds, void, save-card (on-session), and mandate/3DS test stubs
  • Modified: cypress-tests/cypress/e2e/configs/Payment/Utils.js — import and connector registration added alphabetically

Additional Changes

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

No API schema, database, or configuration changes. Only Cypress test configuration files are modified.

Motivation and Context

The imerchantsolutions connector is a new Beta integration in Hyperswitch. This PR adds Cypress test configuration coverage so that once the Rust connector backend implementation is completed, the full card payment test suite can be run against this connector.

Connector feature matrix:

  • Card Credit/Debit: No3DS only (3DS not supported)
  • Capture: Automatic, Manual, ManualMultiple
  • Refunds: Supported (full and partial)
  • Mandates: Supported per feature matrix
  • Auth type: HeaderKey
  • Card networks: Mastercard, Visa, Amex, JCB, Discover, UnionPay

Closes #13342

How did you test it?

The test configuration was generated following the Hyperswitch Cypress test framework conventions and validated against the connector's feature matrix.

The imerchantsolutions connector backend is currently a stub — all payment operations return ConnectorError::NotImplemented. A live API call to http://localhost:8080 confirmed the routing works correctly (payments reach the connector) but the Rust implementation in crates/hyperswitch_connectors/src/connectors/imerchantsolutions.rs has 7 stub methods that need implementing.

Once the backend is implemented, tests can be run with:

CYPRESS_CONNECTOR=imerchantsolutions npm run cypress:ci

The connector is intentionally NOT added to CI connector batches — tests will run only when explicitly invoked.

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

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

semanticdiff-com Bot commented Jul 16, 2026

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  cypress-tests/cypress/e2e/configs/Payment/Imerchantsolutions.js  0% smaller
  cypress-tests/cypress/e2e/configs/Payment/Utils.js  0% smaller

Add Cypress test configuration for imerchantsolutions connector:
- Card Credit/Debit No3DS auto/manual capture
- Refund flows (full, partial, sync)
- Void payment
- Save card (on-session)
- Mandate flows (skipped pending UCS mandate verification)
- 3DS flows (skipped — not supported)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-test-ready Status: This PR is ready for cypress-tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[QA] Add Cypress test coverage for imerchantsolutions connector

1 participant