mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Adding list view snapshot test with key presses
This commit is contained in:
@@ -90,6 +90,10 @@ def test_header_render(snap_compare):
|
||||
assert snap_compare(WIDGET_EXAMPLES_DIR / "header.py")
|
||||
|
||||
|
||||
def test_list_view(snap_compare):
|
||||
assert snap_compare(WIDGET_EXAMPLES_DIR / "list_view.py", press=["tab", "down", "down", "up"])
|
||||
|
||||
|
||||
def test_textlog_max_lines(snap_compare):
|
||||
assert snap_compare("snapshot_apps/textlog_max_lines.py", press=[*"abcde", "_"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user