Skip to content

test(web): cover checkout return url handling - #456

Merged
Maxerns merged 3 commits into
getsotto:mainfrom
cyncui:test/checkout-return-url
Oct 12, 2026
Merged

Maxerns merged 3 commits into
getsotto:mainfrom
cyncui:test/checkout-return-url

Conversation

@cyncui

@cyncui cyncui commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

why

closes #326.

checkout return banners need to survive strict mode while the url loses only the consumed billing parameter. these component tests protect that behavior, including a fresh mount at the cleaned url.

scope

  • cover success and cancellation banners with repeated query keys and a fragment.
  • cover absent and unknown outcomes without url changes.

blast radius

only web component tests change. the tests use mocked organisation data and make no payment request.

verification

  • npm test: 71 passed.
  • npm run typecheck: passed with a temporary declaration for the unavailable generated wasm bindings; the declaration was removed.
  • chrome: the actual panel displayed each recognized banner once, preserved unrelated url parts, and left absent or unknown outcomes unchanged. api and vault imports were stubbed.
  • git diff --check: passed.

Signed-off-by: cynthia cui <cynthiacui98@gmail.com>
@Maxerns
Maxerns merged commit 329b90c into getsotto:main Oct 12, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web tests: preserve URL context when consuming checkout return banners

2 participants