Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions tests/footer/test_footer.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,17 @@ def action_app_binding(self) -> None:

app = PriorityBindingApp()
async with app.run_test() as pilot:
await pilot.pause()
assert app_binding_count == 0
# Pause to ensure the footer is fully composed to avoid flakiness in CI
await pilot.pause(0.4)
await app.wait_for_refresh()
await pilot.click("Footer", offset=(1, 0))

footer_key_clicked = await pilot.click("FooterKey")
assert footer_key_clicked is True # Sanity check
await pilot.pause()
assert app_binding_count == 1
await pilot.click("Footer")

footer_key_clicked = await pilot.click("FooterKey")
assert footer_key_clicked is True # Sanity check
await pilot.pause()
assert app_binding_count == 2
Loading