mirror of
https://github.com/nomadkaraoke/karaoke-gen.git
synced 2026-11-20 13:07:57 +09:00
There's no working test card right now (the issuer declines it), so the daily E2E Stage 1 defaults to a **no-charge** mode until the repo variable `E2E_REAL_PAYMENT=true` is set. ## Checkout-only mode (`E2E_PAYMENT_MODE=checkout-only`) - **Unchanged:** real signup via the `e2etest95` referral link, the Buy Credits dialog, and real Stripe Checkout session creation. - **Card:** fills the form with Stripe's public test card `4242…` (`NO_CHARGE_CARD`; no secret needed). The self-healing steps still run, except `submitPayment`. - **Checks:** the $0.50 referral price and the Pay button are visible, then it **stops before Pay**. Live mode always declines that test card, so even an accidental click can't charge anything. - **Stage 2:** gets the new account's session token and spends its signup credit. The test asserts the account has at least 1 credit. - **Not exercised:** the Stripe payment, the webhook credit grant, the purchase email, and self-heal PRs (no verified purchase to learn from). - **Email:** the daily email marks Stage 1 `[checkout-only: no real payment]`. ## Testing - Offline suite: 31 passed. The new test checks that no-charge mode fills the form with the test card, never calls confirm and never leaves Checkout. - `--list` loads the production spec in both modes. Lint and typecheck are clean. - A live E2E Daily run on this branch (37262437261) is in progress against prod. @coderabbitai ignore 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>