diff --git a/tests/test_modal.py b/tests/test_modal.py index 38e509508..3b07085cd 100644 --- a/tests/test_modal.py +++ b/tests/test_modal.py @@ -90,8 +90,7 @@ async def test_modal_pop_screen(): async with app.run_test() as pilot: # Pause to ensure the footer is fully composed to avoid flakiness in CI await pilot.pause() - assert await app.wait_for_refresh() - await pilot.pause() + await pilot.pause() # Required in Windows assert await pilot.click("FooterKey") assert await app.wait_for_refresh() assert isinstance(app.screen, QuitScreen)