test(cypress): RealTimePayment for xendit#13339
Open
HS-QUALIBOT wants to merge 4 commits into
Open
Conversation
- Add Qris + QrisRetrieve config keys to Commons.js real_time_payment_pm - Add real_time_payment_pm section to Xendit.js with PaymentIntent, Qris, QrisRetrieve, QrisMandate configs - Add case 'qris' to confirmRealTimePaymentCallTest in commands.js - Add QRIS automatic capture + QRIS mandate setup context blocks to 31-RealTimePayment.cy.js Co-Authored-By: Paperclip <noreply@paperclip.ing>
- New spec: cypress-tests/cypress/e2e/spec/Payment/31-RealTimePayment.cy.js - Config keys: Qris, QrisRetrieve, QrisMandate (real_time_payment_pm) - Connectors regressed: xendit - Parent issue: HYP-161
Changed Files
|
- New spec context: DuitNow automatic capture flow in 31-RealTimePayment.cy.js - Config keys: DuitNow, DuitNowRetrieve in Xendit.js - Runner verification: 12 tests, 9 passed, 0 failed, 3 skipped (PASS) - Parent issue: HYP-161 Co-Authored-By: Paperclip <noreply@paperclip.ing>
- Removed DuitNow context from 31-RealTimePayment.cy.js (69 lines deleted) - Removed DuitNow + DuitNowRetrieve config keys from Xendit.js (33 lines deleted) - Removed mockReplayQris function from mitmProxy.js (12 lines deleted) - Removed mockReplayQris import + isReplayMode() call from commands.js (4 lines deleted) - Handle Redirection NOT restored (QRIS-only scope per board review) - Parent issue: HYP-161 Co-Authored-By: Paperclip <noreply@paperclip.ing>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13339 +/- ##
=======================================
Coverage ? 0
=======================================
Files ? 0
Lines ? 0
Branches ? 0
=======================================
Hits ? 0
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Add Cypress test coverage for Xendit QRIS RealTimePayment payment authorization and recurring mandates. The spec
31-RealTimePayment.cy.jsnow includes QRIS base payment (5 tests) and QRIS mandate (4 tests) context blocks, with mock-based QR code flow handling viamockReplayQris. The DuitNow context was removed and replaced with QRIS-specific config keys (Qris, QrisRetrieve, QrisMandate) in the Xendit connector config. TheexpectedIntentStatusfor QRIS retrieve flows was updated torequires_customer_actionto reflect the pending nature of QRIS payments in the sandbox environment.Additional Changes
No API schema changes. No database schema changes. No application configuration changes.
Motivation and Context
This change adds test coverage for the Xendit connector's QRIS (Quick Response Indonesian Standard) RealTimePayment flow, which was previously untested. QRIS is a widely used payment method in Indonesia, and this coverage ensures that both base payment authorization and recurring mandate setups are validated. Due to sandbox limitations, payment status remains at
requires_customer_action(PENDING) — tests validate request payload structure, API response handling, and status transitions up to that point.Related to HYP-161 — Xendit Connector - Qris RealTimePayment Testing.
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 — xendit
Summary
Checklist
cargo +nightly fmt --allcargo clippyCloses #13338
Related to HYP-161