Skip to content

test(e2e): cover the core stamp card flow - #296

Merged
cljiahao merged 6 commits into
stagingfrom
test/e2e-core-flow
Dec 2, 2026
Merged

cljiahao merged 6 commits into
stagingfrom
test/e2e-core-flow

Conversation

@cljiahao

@cljiahao cljiahao commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds e2e/core-flow.spec.ts: the vendor creates a stamp card program, a customer enrolls via /c?v=<vendor> (phone plus birthday through the shared Radix Select), then the vendor looks the customer up on the counter and stamps the card. The count is asserted 0 / 5 then 1 / 5.
  • Extends e2e/mock-supabase.ts with function fixtures, the RPCs the flow needs, and paging that honours offset/limit and the app's keyset cursors.
  • New core-flow Playwright project chained after signed-in because they share the mock port.
  • No src/** changes. Version 0.7.2, CHANGELOG and READMEs updated.

Test plan

  • pnpm test:e2e (CI mode)
  • pnpm check and vitest via the pre-push gate

🤖 Generated with Claude Code

cljiahao and others added 6 commits December 1, 2026 21:54
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Also ignores the one e2e fixture finding in an already-pushed commit; the fixture was changed in the next commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The app validates card tokens as 32 lowercase hex characters, so the previous low-entropy placeholder broke the customer join.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cljiahao
cljiahao merged commit 8e11174 into staging Dec 2, 2026
10 checks passed
@cljiahao
cljiahao deleted the test/e2e-core-flow branch December 2, 2026 01:23
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.

1 participant