Skip to content

Commit 8823ce2

Browse files
taylaandclaude
andcommitted
fix: sidebar Pilot test race — add await pilot.pause() before widget query
test_sidebar_shows_status_bar was querying #status before Textual finished composing the widget tree. Adding pilot.pause() matches the pattern used by the adjacent test_sidebar_shows_timer_widget. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e16c4e7 commit 8823ce2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/studyctl/tests/test_sidebar_pilot.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ async def test_sidebar_shows_status_bar(self, state_dir):
9696
)
9797

9898
async with SidebarApp().run_test(size=(40, 20)) as pilot:
99+
await pilot.pause() # let mount + compose complete
99100
status = pilot.app.query_one("#status")
100101
assert "pause" in str(status.render()).lower() or "p:" in str(status.render())
101102

0 commit comments

Comments
 (0)