test(e2e): add Paddle happy-path purchases for inline and overlay (WST-714)#920
Closed
rogersole wants to merge 5 commits into
Closed
Conversation
cd704fb to
587e5aa
Compare
11e162c to
5f2e4cb
Compare
587e5aa to
bbb5362
Compare
3945347 to
4bc31f9
Compare
bbb5362 to
f6a20cd
Compare
4bc31f9 to
209de3b
Compare
f6a20cd to
9e25cc2
Compare
209de3b to
43a7c79
Compare
Contributor
Author
|
Verified locally against the sandbox: both happy paths complete real sandbox purchases (~16-19s each), green on 3 consecutive runs — inline asserts the sandbox banner, RC order summary, processing-or-success race, and Two follow-ups:
|
9e25cc2 to
28e8661
Compare
43a7c79 to
98809d5
Compare
28e8661 to
80f0169
Compare
98809d5 to
5a9def3
Compare
This was referenced Jun 11, 2026
vicfergar
reviewed
Jun 12, 2026
rogersole
added a commit
that referenced
this pull request
Jun 12, 2026
Addresses review feedback on #920: fold the near-identical inline and overlay happy-path tests into a single forEach over the two modes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
80f0169 to
6738fa0
Compare
rogersole
added a commit
that referenced
this pull request
Jun 12, 2026
Addresses review feedback on #920: fold the near-identical inline and overlay happy-path tests into a single forEach over the two modes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
3f3e271 to
b6dca4b
Compare
…T-714) - Inline: sandbox banner + RC order summary visible (presence only — exact totals depend on checkout.updated timing), form completion in the container-scoped frame, processing-or-success race, success page, Continue -> /success/. - Overlay: form completion in Paddle's overlay frame, success page. Both tests skip on CI until the WST-709 spike validates that Paddle sandbox completes purchases from datacenter IPs (Stripe does not), mirroring the Stripe suite's original LOCAL_ONLY_COMPLETION gating. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…xists (WST-714) The Paddle E2E project's products grant no entitlement yet, so the demo's entitlement-gated success page cannot render its content (it currently crashes on a null offering in WithEntitlement). Reaching /success/ already proves the purchase completed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
… exists (WST-714) The paddle_e2e_test offering's products now grant an entitlement, so the success page renders its content like in the Stripe suite. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The WST-709 spike (#923) confirmed Paddle sandbox completes purchases from CircleCI IPs — both happy paths passed on CI — so the local-only gating the Stripe suite needs is unnecessary here. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Addresses review feedback on #920: fold the near-identical inline and overlay happy-path tests into a single forEach over the two modes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
6738fa0 to
441db18
Compare
b6dca4b to
ad6c5c9
Compare
Contributor
Author
|
Superseded by #925, which now targets |
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.
Summary
Stacked on #919. Completes the WST-564 happy-path requirement for both presentation modes — both tests complete real Paddle sandbox purchases, and they run on CI (the WST-709 spike, #923, confirmed Paddle sandbox completes purchases from CircleCI IPs — no Stripe-style CAPTCHA gating needed).
checkout.updatedtiming) → form completion in the container-scoped frame → processing-state-or-success race → 'Payment complete' → Continue →/success/→ entitlement-gated success content ('Enjoy your premium experience.')./success/→ entitlement-gated success content.Part of WST-564 (subtask WST-714).
Test plan
tsc --noEmit, eslint, prettier cleanpaddle_e2e_testoffering's products)🤖 Generated with Claude Code
Note
Low Risk
Test-only changes in the webbilling demo; no production billing or app logic is modified.
Overview
Adds end-to-end happy-path purchase coverage for Paddle in the webbilling demo, parameterized for inline and overlay checkout modes. Each test forces the mode, starts a purchase from the paywall, fills the Paddle checkout in the correct iframe, and asserts through payment complete → Continue →
/success/with entitlement copy ("Enjoy your premium experience.").A shared
confirmSuccessPagehelper centralizes the post-payment navigation and success assertions. Inline tests additionally check RC chrome (sandbox banner,.rcb-paddle-summary) and tolerate a race between processing UI and success; overlay tests target Paddle’s overlay frame. The existing checkout/start error scenario is unchanged.Reviewed by Cursor Bugbot for commit ad6c5c9. Bugbot is set up for automated code reviews on this repo. Configure here.