From 75606c8dfdec251e396f39ba70fca9b440892702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Thu, 18 May 2023 16:11:02 +0100 Subject: [PATCH] Add explicit sleep. --- tests/snapshot_tests/test_snapshots.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/snapshot_tests/test_snapshots.py b/tests/snapshot_tests/test_snapshots.py index 0c8fb5abb..6f0a97faf 100644 --- a/tests/snapshot_tests/test_snapshots.py +++ b/tests/snapshot_tests/test_snapshots.py @@ -475,7 +475,9 @@ def test_dock_scroll_off_by_one(snap_compare): def test_scroll_to(snap_compare): # https://github.com/Textualize/textual/issues/2525 - assert snap_compare(SNAPSHOT_APPS_DIR / "scroll_to.py", terminal_size=(80, 25)) + assert snap_compare( + SNAPSHOT_APPS_DIR / "scroll_to.py", terminal_size=(80, 25), press=["_"] + ) def test_auto_fr(snap_compare):