From 0ab74c781a6c00229918527c853ee89cc7cdf313 Mon Sep 17 00:00:00 2001 From: TomJGooding <101601846+TomJGooding@users.noreply.github.com> Date: Mon, 22 Sep 2025 12:26:11 +0100 Subject: [PATCH] test(modal): change click to mouse down in flaky test `test_modal_pop_screen()` is apparently still flaky in CI even after increasing the pauses in #6116. Try changing the Footer `click` to `mouse_down` instead to avoid the `NoWidget` error in the pilot mouse events. --- tests/test_modal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_modal.py b/tests/test_modal.py index db45fcf584..148cfbb2b7 100644 --- a/tests/test_modal.py +++ b/tests/test_modal.py @@ -92,7 +92,7 @@ async def test_modal_pop_screen(): await pilot.pause(0.4) await app.wait_for_refresh() # Check clicking the footer brings up the quit screen - await pilot.click(Footer) + await pilot.mouse_down(Footer) await pilot.pause() assert isinstance(pilot.app.screen, QuitScreen) # Check activating the quit button exits the app