E2E test: parent registration + coach signup flows #33

Closed
opened 2026-03-10 04:27:40 +00:00 by forgejo_admin · 0 comments

Lineage

plan-2026-03-08-tryout-prep → Phase 3a-iii → Phase 3a-iii-e2e

Repo

forgejo_admin/basketball-api

User Story

As Marcus (program director)
I want to see both signup flows working end-to-end on the live site
So that I can approve the email blast to 34 families tonight

Context

All code is merged. Two flows need E2E verification on the live site before Marcus demo:

Flow 1 — Parent registration: Parent visits /register → email gate → walk-up form (or token pre-fill) → fills out player info → signs waiver/disclaimer (checkbox, timestamp, IP recorded) → submit → data in DB.

Flow 2 — Coach signup: Coach visits /coach/signup → fills name/email/phone → reads & agrees to contractor agreement → Stripe Connect onboarding. ONE link for all coaches, no token needed.

Stripe test coupon TESTFREE (100% off, 5 max) already created for testing.

File Targets

No code changes — this is E2E verification via Playwright on the live site.

  • Verify: https://basketball-api.tail5b443a.ts.net/register
  • Verify: https://basketball-api.tail5b443a.ts.net/coach/signup

Acceptance Criteria

  • Parent walk-up flow: /register → email gate → form → waiver → submit → data in DB
  • Coach signup flow: /coach/signup → form → agreement checkbox → submit → Stripe redirect
  • Test data uses obvious test names (Test McTestface, testparent@example.com, etc.)
  • Waiver fields recorded (timestamp, IP) verified in DB or API response
  • Coach signup + JWT fix deployed (image bump after pipeline #35)

Test Expectations

  • Playwright E2E: navigate, fill forms, submit, verify responses
  • DB verification: confirm records created with correct data
  • No unit tests — this is live site verification

Constraints

  • Use obvious test user data — not real people
  • Coach Stripe Connect redirect will go to Stripe's hosted page (can't automate past that — Lucas tests with real info)
  • Parent token flow requires JWT auth working to generate tokens via admin endpoint

Checklist

  • Both flows verified on live site
  • Test data visible in DB
  • Screenshots/snapshots captured as evidence for Marcus
  • project-westside-basketball
  • Issue #30 (coach signup + JWT fix — merged)
  • Issue #29 (waiver deploy — merged)
### Lineage `plan-2026-03-08-tryout-prep` → Phase 3a-iii → Phase 3a-iii-e2e ### Repo `forgejo_admin/basketball-api` ### User Story As Marcus (program director) I want to see both signup flows working end-to-end on the live site So that I can approve the email blast to 34 families tonight ### Context All code is merged. Two flows need E2E verification on the live site before Marcus demo: **Flow 1 — Parent registration**: Parent visits `/register` → email gate → walk-up form (or token pre-fill) → fills out player info → signs waiver/disclaimer (checkbox, timestamp, IP recorded) → submit → data in DB. **Flow 2 — Coach signup**: Coach visits `/coach/signup` → fills name/email/phone → reads & agrees to contractor agreement → Stripe Connect onboarding. ONE link for all coaches, no token needed. Stripe test coupon `TESTFREE` (100% off, 5 max) already created for testing. ### File Targets No code changes — this is E2E verification via Playwright on the live site. - Verify: `https://basketball-api.tail5b443a.ts.net/register` - Verify: `https://basketball-api.tail5b443a.ts.net/coach/signup` ### Acceptance Criteria - [ ] Parent walk-up flow: `/register` → email gate → form → waiver → submit → data in DB - [ ] Coach signup flow: `/coach/signup` → form → agreement checkbox → submit → Stripe redirect - [ ] Test data uses obvious test names (Test McTestface, testparent@example.com, etc.) - [ ] Waiver fields recorded (timestamp, IP) verified in DB or API response - [ ] Coach signup + JWT fix deployed (image bump after pipeline #35) ### Test Expectations - [ ] Playwright E2E: navigate, fill forms, submit, verify responses - [ ] DB verification: confirm records created with correct data - No unit tests — this is live site verification ### Constraints - Use obvious test user data — not real people - Coach Stripe Connect redirect will go to Stripe's hosted page (can't automate past that — Lucas tests with real info) - Parent token flow requires JWT auth working to generate tokens via admin endpoint ### Checklist - [ ] Both flows verified on live site - [ ] Test data visible in DB - [ ] Screenshots/snapshots captured as evidence for Marcus ### Related - `project-westside-basketball` - Issue #30 (coach signup + JWT fix — merged) - Issue #29 (waiver deploy — merged)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forgejo_admin/basketball-api#33
No description provided.