Pause after input test

This commit is contained in:
Darren Burns
2023-01-17 14:26:16 +00:00
parent 8a04f13ad1
commit e1de10d21a

View File

@@ -68,6 +68,7 @@ async def test_input_value_visible_if_mounted_later_and_focused():
app = MyApp() app = MyApp()
async with app.run_test() as pilot: async with app.run_test() as pilot:
await pilot.press("a") await pilot.press("a")
await pilot.pause()
console = Console(width=5) console = Console(width=5)
with console.capture() as capture: with console.capture() as capture:
console.print(app.query_one(Input).render()) console.print(app.query_one(Input).render())