Raffle wheel test

Code under test: Greenlight main commit 43dd205c (the code live on 3 December 2026), the real admin raffle wheel page. Browser: headless Chromium driven by Playwright. Eight couples (first names only), one event named "R&B Game Night", three prizes. Every request to the server and to sign in was answered by a fake in the test. No real sign in, no live API, no database. Run on 3 December 2026.

Results

FlowResultWhat was seen
1. Wheel loads, Setup opens and closesPASS8 couples drawn as slices labelled with two first names; heading, next prize and the "8 pairs on the wheel" line show; Setup opens and closes by button and by the S key.
2. Set an end time, see the countdown, clear itPASSOne save sent for the chosen time (95 minutes out). Panel and wheel show a ticking countdown (1:34:12 then 1:34:09). Clear sends a second save and the countdown disappears.
3. End entries now: confirm, Escape, confirmPASSEscape closed the dialog and sent nothing (0 requests). Confirming sent exactly 1 request, PATCH to /api/admin/live-events/7 with action "end". The wheel then shows ENTRIES CLOSED 00:00.
4. Spin and winner revealPASSThe wheel turned (0 to 1818 degrees), 1 award request to this event's winners address, reveal showed the couple the server stored by first names and the prize. No last name, age, photo or member id on screen or in the page text.
5. Spin again after a winnerPASSAfter the first winner the wheel went from 8 slices to 7 and that couple's slice was gone. Meta line read "1 drawn", next prize moved to the second prize. The second spin picked a different couple.
6. Failed award (500 once), then retryPASSThe host sees a red message, "Could not save the winner. Check the connection and spin again." No reveal, nothing stored, Spin works again. The second spin stored the winner and showed the reveal.
7. Music and mutePASSThe Mute button switches to Unmute (and back, also with the M key). Sound state read off the page: master volume 0.9 unmuted, 0 muted; the spoken winner line was started once at the reveal when unmuted and not started when muted. Real sound was not heard (headless).
8. Phone size 390x844FAILSpin, Setup panel and reveal fit the screen with no sideways scroll. DEFECT: on the wheel screen the top button row runs 20 px past the left edge, so the "Back to event" button is cut off, and the row sits over the top of the Greenlight logo.

Defects found

  1. Phone: the Back to event button is cut off and the button row covers the logo. Steps: open the wheel at 390 by 844. Expected: all four buttons fully on screen, clear of the logo. Seen: the Back to event button starts 20 px left of the screen edge, and the row overlaps the top of the Greenlight logo. Screenshot: wheel on a phone.
  2. Member ids sit in test hook attributes. Not visible and not a leak on screen, but the page source holds 14 data-testid attributes such as wheel-slice-100:101 (pairs of member ids). If "no member id anywhere in the page source" is the rule, this does not meet it. No last name, age or photo address appears anywhere; the fake server sent sentinel last name, age, photo and member id fields to prove the page does not print them.

What was not checked

Clips and screenshots

1. Wheel loads, Setup opens and closes PASS

Console errors: none. Failed requests: none.

Checks run (7)
loaded
loaded
setup-open
setup-open
setup-closed
setup-closed

2. Set an end time, see the countdown, clear it PASS

Console errors: none. Failed requests: none.

Checks run (8)
end-time-typed
end-time-typed
end-time-saved
end-time-saved
countdown-on-wheel
countdown-on-wheel
cleared
cleared
cleared-on-wheel
cleared-on-wheel

3. End entries now: confirm, Escape, confirm PASS

Console errors: none. Failed requests: GET http://127.0.0.1:4871/api/admin/live-events/7/couples -> net::ERR_ABORTED.

Checks run (10)
confirm-open
confirm-open
after-escape
after-escape
entries-closed-panel
entries-closed-panel
entries-closed-wheel
entries-closed-wheel

4. Spin and winner reveal PASS

Console errors: none. Failed requests: none.

Checks run (9)
spinning-early
spinning-early
spinning-late
spinning-late
winner-reveal
winner-reveal

5. Spin again after a winner PASS

Console errors: none. Failed requests: none.

Checks run (9)
first-winner
first-winner
wheel-after-first-winner
wheel-after-first-winner
second-winner
second-winner

6. Failed award (500 once), then retry PASS

Console errors: Failed to load resource: the server responded with a status of 500 (Internal Server Error). Failed requests: POST /api/admin/live-events/7/raffle/winners -> 500.

Checks run (7)
failure-toast
failure-toast
after-failure
after-failure
retry-reveal
retry-reveal

7. Music and mute PASS

Console errors: none. Failed requests: none.

Checks run (7)
sound-on
sound-on
muted
muted
sound-on-again
sound-on-again
reveal-sound-on
reveal-sound-on
reveal-muted
reveal-muted

8. Phone size 390x844 FAIL

Console errors: none. Failed requests: none.

Checks run (6)
wheel-phone
wheel-phone
setup-phone
setup-phone
spinning-phone
spinning-phone
reveal-phone
reveal-phone