Skip to content

Commit 3a3d046

Browse files
authored
Merge pull request #6032 from TomJGooding/test-footer-flaky-test-redux
test(footer): increase initial pause in flaky test
2 parents da3f608 + a7d941f commit 3a3d046

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/footer/test_footer.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,17 @@ def action_app_binding(self) -> None:
5050

5151
app = PriorityBindingApp()
5252
async with app.run_test() as pilot:
53-
await pilot.pause()
5453
assert app_binding_count == 0
54+
# Pause to ensure the footer is fully composed to avoid flakiness in CI
55+
await pilot.pause(0.4)
5556
await app.wait_for_refresh()
56-
await pilot.click("Footer", offset=(1, 0))
57+
58+
footer_key_clicked = await pilot.click("FooterKey")
59+
assert footer_key_clicked is True # Sanity check
5760
await pilot.pause()
5861
assert app_binding_count == 1
59-
await pilot.click("Footer")
62+
63+
footer_key_clicked = await pilot.click("FooterKey")
64+
assert footer_key_clicked is True # Sanity check
6065
await pilot.pause()
6166
assert app_binding_count == 2

0 commit comments

Comments
 (0)