fix(e2e): accept an auto-rejoined game in reconnectToRoom #15
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/e2e-reconnect-flake"
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?
After a reload mid-game, the server can rejoin the player from the session cookie before the nickname form renders, so reconnectToRoom timed out waiting for it (2/25 local repro, same error as CI). Now waits for either the form or the in-game round label and only refills the form when it is shown.
Local: TestE2EReconnect -count 25 → started_game 25/25 (was 23/25). just_one_player failed 1/25 on a pre-existing 5s networkidle wait; untouched here.