Comprehensive checkout + Stripe payment flow tests #75
Reference in New Issue
Block a user
Delete Branch "feat/checkout-comprehensive-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two new Playwright test files:
checkout-flows.spec.ts (60 tests): all 3 plan variants, auth section visibility, form validation, mocked Supabase auth flows (sign-up, confirm-required, existing session, sign-in error), DOM transitions, auth badge, buyer-email pre-fill, /api/supabase-config CORS.
checkout-stripe.spec.ts (45 tests): Stripe.js presence, NEURON_CFG shape, attestation checkbox, charge timing radios, setup_mode label, mocked Stripe via addInitScript + /api/payment-intent intercept, decline handling, sold-out guard, endpoint contracts, live test-card flows (skipped unless STRIPE_LIVE=1).