Skip to content

test(footer): increase initial pause in flaky test #6032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 12, 2025
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