Skip to content

Wait for the saved repository choice in the dashboard switch test - #121

Merged
uyujkk merged 1 commit into
mainfrom
claude/fix-flaky-repo-switch-test
Nov 10, 2026
Merged

uyujkk merged 1 commit into
mainfrom
claude/fix-flaky-repo-switch-test

Conversation

@uyujkk

@uyujkk uyujkk commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Summary

The UI test Dashboard_SwitchingToARepositoryWithoutFoldersKeepsRunning failed once on main after #118 merged (run 42763028808, 4f8da19): it expected SelectedRepositoryId to be empty-repository but read ui-repository.

Since J8 (#117), a page switch shows the new selection first and saves the settings right after. The test read beta-shell.json immediately after the click, so it sometimes got the file before the save. The app's behaviour is fine; the same test passed on #118, #119 and #120.

The test now waits up to 5 s for the saved value, like the target-path test next to it does. A file caught mid-write or locked counts as not yet saved. Only the test changes.

Test plan

🤖 Generated with Claude Code

Since J8 a page switch shows the new selection first and saves right after, so the test sometimes read beta-shell.json before the save and failed on main (run 42763028808, 4f8da19). It now waits up to 5 s for the saved value, like the target-path test does, and treats a file caught mid-write as not yet saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@uyujkk
uyujkk merged commit 4b840f3 into main Nov 10, 2026
4 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