mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add some wiggle room to the no-matches command palette timeout test
See #3700.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user