Skip to content

Conversation

arindam-sahoo
Copy link
Contributor

@arindam-sahoo arindam-sahoo commented Jul 21, 2025

Type of Change

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

Description

The PR creates test configurations for globepay connector to support wallet payment methods (WeChat Pay and Alipay) in the Cypress test suite, enabling automated testing of these payment flows.

Also adds a new configuration file cypress-tests/cypress/e2e/configs/Payment/Globepay.js that defines test data for wallet payment methods. The configuration includes:

  • Billing details with UK-based address information (London, GB).
  • WeChat Pay configuration with we_chat_pay_qr wallet type and expected response status requires_customer_action
  • Alipay configuration (same as WeChatPay configuration)
  • PaymentIntent configuration using GBP currency and expecting requires_payment_method status

PS: I need this PR for addition of Wallet Test.

Additional Changes

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

Motivation and Context

This is a cypress enhancement that:

  1. Enables automated testing for globepay wallet payment methods in the Cypress test suite.
  2. Supports wallet payment flows specifically for WeChat Pay and Alipay through the globepay connector

The changes are purely additive and focused on test automation.

How did you test it?

Screenshot from another PR where Wallet Tests are added
image

Full Run Screenshot
image

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

Copy link

semanticdiff-com bot commented Jul 21, 2025

Review changes with  SemanticDiff

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

@arindam-sahoo arindam-sahoo self-assigned this Jul 21, 2025
@arindam-sahoo arindam-sahoo added the A-CI-CD Area: Continuous Integration/Deployment label Jul 22, 2025
@arindam-sahoo arindam-sahoo added this to the July 2025 Release milestone Jul 22, 2025
@arindam-sahoo arindam-sahoo marked this pull request as ready for review July 22, 2025 03:48
@arindam-sahoo arindam-sahoo requested a review from a team as a code owner July 22, 2025 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI-CD Area: Continuous Integration/Deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant