Skip to content

Commit

Permalink
Merge pull request #4880 from TomJGooding/tests-fix-flaky-command-pal…
Browse files Browse the repository at this point in the history
…ette-snapshot-test

tests: fix flaky command palette snapshot test
  • Loading branch information
willmcgugan authored Aug 13, 2024
2 parents 89beec8 + 1460e66 commit aaedaf9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/snapshot_tests/test_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
import pytest

from tests.snapshot_tests.language_snippets import SNIPPETS
from textual.pilot import Pilot
from textual.app import App
from textual.widgets.text_area import Selection, BUILTIN_LANGUAGES
from textual.widgets import RichLog, TextArea, Input, Button
from textual.widgets.text_area import TextAreaTheme
from textual.pilot import Pilot
from textual.widgets import Button, Input, RichLog, TextArea
from textual.widgets.text_area import BUILTIN_LANGUAGES, Selection, TextAreaTheme

# These paths should be relative to THIS directory.
WIDGET_EXAMPLES_DIR = Path("../../docs/examples/widgets")
Expand Down Expand Up @@ -1433,8 +1432,7 @@ async def run_before(pilot: Pilot):
await pilot.press(App.COMMAND_PALETTE_BINDING)
await pilot.pause()
await pilot.press(*"foo")
await pilot.pause()
await pilot.pause()
await pilot.app.workers.wait_for_complete()
await pilot.press("escape")

assert snap_compare(
Expand Down

0 comments on commit aaedaf9

Please sign in to comment.