Skip to content

fix(e2e): wait for the options save before navigating away - #173

Merged
jouwdan merged 1 commit into
mainfrom
claude/mei-17-mei-19-b2x0tb
Aug 20, 2026
Merged

fix(e2e): wait for the options save before navigating away#173
jouwdan merged 1 commit into
mainfrom
claude/mei-17-mei-19-b2x0tb

Conversation

@jouwdan

@jouwdan jouwdan commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Kills the e2e flake that failed shard 2 twice today (on main at run #495 and on #170's first run): the Tokyo timezone test clicked Save options and navigated away immediately, so when the runner was slow the Server Action's response stream was aborted mid-flight and the board logged ⨯ Error: The destination stream closed early (digest 1663937324) — which the server-error reporter rightly fails the run for, twice per run because the test saves twice.

The fix awaits the ?saved=1 redirect after each save before navigating, the same pattern the signUp helper already uses with /login?registered=1. The save now provably completes before the next goto can cancel it.

Validated locally: the three local-time tests pass with no server errors logged. This was meant to ride along on #170, which merged first.

🤖 Generated with Claude Code

https://claude.ai/code/session_011TkUEQhzDEpjYSgJLqeBDb


Generated by Claude Code

Both Save options clicks in the Tokyo timezone test fired a Server
Action and navigated immediately, so a slow response stream was aborted
by the next goto and the board logged 'The destination stream closed
early' — which the server-error reporter rightly fails the run for.
Awaiting the ?saved=1 redirect pins the order: the save completes, then
the navigation happens.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011TkUEQhzDEpjYSgJLqeBDb
@jouwdan
jouwdan merged commit ff06209 into main Aug 20, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants