mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
more pauses
This commit is contained in:
@@ -89,10 +89,11 @@ async def test_modal_pop_screen():
|
||||
app = ModalApp()
|
||||
async with app.run_test() as pilot:
|
||||
# Pause to ensure the footer is fully composed to avoid flakiness in CI
|
||||
await pilot.pause(0.4)
|
||||
await pilot.pause()
|
||||
await app.wait_for_refresh()
|
||||
await pilot.pause()
|
||||
# Check clicking the footer brings up the quit screen
|
||||
await pilot.click(Footer)
|
||||
await pilot.click(Footer, offset=(1, 0))
|
||||
await pilot.pause()
|
||||
assert isinstance(pilot.app.screen, QuitScreen)
|
||||
# Check activating the quit button exits the app
|
||||
|
||||
Reference in New Issue
Block a user