Skip to content

Commit

Permalink
Merge pull request #3708 from davep/main
Browse files Browse the repository at this point in the history
  • Loading branch information
davep authored Nov 20, 2023
2 parents 63111fe + 43de6d7 commit 81b35e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/command_palette/test_no_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ async def test_no_results() -> None:
assert results.visible is False
assert results.option_count == 0
await pilot.press("a")
await pilot.pause(delay=CommandPalette._NO_MATCHES_COUNTDOWN)
# https://github.com/Textualize/textual/issues/3700 -- note the
# little bit of wiggle room to allow for Windows.
await pilot.pause(delay=CommandPalette._NO_MATCHES_COUNTDOWN + 0.1)
assert results.visible is True
assert results.option_count == 1
assert "No matches found" in str(results.get_option_at_index(0).prompt)
Expand Down

0 comments on commit 81b35e3

Please sign in to comment.