* add blur

* docstring

* blur on disabled

* snapshot test

* Add test
This commit is contained in:
Will McGugan
2023-05-24 20:16:11 +01:00
committed by GitHub
parent a89c199409
commit 8151946f38
7 changed files with 253 additions and 62 deletions

View File

@@ -514,3 +514,11 @@ def test_select_rebuild(snap_compare):
SNAPSHOT_APPS_DIR / "select_rebuild.py",
press=["space", "escape", "tab", "enter", "tab", "space"],
)
def test_blur_on_disabled(snap_compare):
# https://github.com/Textualize/textual/issues/2641
assert snap_compare(
SNAPSHOT_APPS_DIR / "blur_on_disabled.py",
press=[*"foo", "f3", *"this should not appear"],
)