test(e2e): drive the full Razorpay subscription checkout (Start→Cards→RBI→OTP)#203
Merged
Merged
Conversation
…→RBI→OTP) The card-entry leg now drives the real TEST-mode subscription flow observed live: Start Subscription → select Cards (INR checkout defaults to UPI) → keystroke card entry → Continue → RBI 'Yes, secure my card' mandate modal → OTP 1234 → Continue. Previously it assumed a one-shot 'Pay' card form and soft-skipped on the subscription DOM. Still fully resilient (every step best-effort; markup change soft-fails, never reds the nightly). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
size-limit report 📦
|
…(capturedShortUrl) When prod is ARMED (test keys live) a cohort checkout returns a real short_url and CheckoutPage window.location.assign's immediately; our route() aborts that nav, which can tear the React tree down before the checkout-redirecting testid stabilises → the @pr-smoke test timed out as 'stuck' (seen in the 2026-06-07 e2e-prod run). If the route captured a Razorpay URL, that IS the 'razorpay' success outcome — check capturedShortUrl before falling back to 'stuck'. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Hardens the
live-ui-paymentcard-entry leg to drive the real TEST-mode subscription checkout flow observed live (2026-06-07): Start Subscription → select Cards (the INR checkout defaults to UPI) → keystroke card entry → Continue → RBI 'Yes, secure my card' mandate modal → OTP 1234 → Continue. Previously it assumed a one-shot 'Pay' form and soft-skipped on the subscription DOM. Still fully resilient (every step best-effort; a markup change soft-fails, never reds the nightly).Part of making the discovered payment path static so it runs in CI on every build (per the plan: MCP to discover → Playwright to codify).
Follow-up (tracked): add the failure branch (bank-sim 'Pay on bank's page' → Success/Failure buttons) + the international (USD, card 5105…+name) variant.
🤖 Generated with Claude Code