Skip to content

test(e2e): de-flake the project switcher assertion#12

Merged
plosson merged 1 commit into
mainfrom
ux-phase-1-fix
Jul 15, 2026
Merged

test(e2e): de-flake the project switcher assertion#12
plosson merged 1 commit into
mainfrom
ux-phase-1-fix

Conversation

@plosson

@plosson plosson commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Follow-up to #11. Under full-suite load, the projects: the sidebar is scoped… e2e test could read #project-select before navigation (or the new focus refetch) had settled the value, because phase 1 removed the old #doc-title settling wait that used to mask the race. This makes the switcher assertions wait for the value via page.waitForFunction instead of reading a single racy snapshot — the product behavior is unchanged; only the test's observation is made deterministic.

bun test is green across two consecutive full runs (156 tests, 9 files).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Gnrgu8jdLx12jkWY1B8vb3

Under full-suite load the switcher assertions could read #project-select
before navigation (or the focus refetch) settled it, since phase 1 dropped
the old #doc-title settling wait. Assert the value by waiting for it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gnrgu8jdLx12jkWY1B8vb3
@plosson
plosson merged commit abfb307 into main Jul 15, 2026
2 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.

1 participant