mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Snapshot tests for column and row cursors in DataTable
This commit is contained in:
@@ -93,6 +93,16 @@ def test_datatable_render(snap_compare):
|
||||
assert snap_compare(WIDGET_EXAMPLES_DIR / "data_table.py", press=press)
|
||||
|
||||
|
||||
def test_datatable_row_cursor_render(snap_compare):
|
||||
press = ["up", "left", "right", "down", "down", "_"]
|
||||
assert snap_compare(SNAPSHOT_APPS_DIR / "data_table_row_cursor.py", press=press)
|
||||
|
||||
|
||||
def test_datatable_column_cursor_render(snap_compare):
|
||||
press = ["left", "up", "down", "right", "right", "_"]
|
||||
assert snap_compare(SNAPSHOT_APPS_DIR / "data_table_column_cursor.py", press=press)
|
||||
|
||||
|
||||
def test_footer_render(snap_compare):
|
||||
assert snap_compare(WIDGET_EXAMPLES_DIR / "footer.py")
|
||||
|
||||
@@ -147,11 +157,11 @@ def test_multiple_css(snap_compare):
|
||||
|
||||
|
||||
def test_order_independence(snap_compare):
|
||||
assert snap_compare("snapshot_apps/order_independence.py")
|
||||
assert snap_compare("snapshot_apps/layer_order_independence.py")
|
||||
|
||||
|
||||
def test_order_independence_toggle(snap_compare):
|
||||
assert snap_compare("snapshot_apps/order_independence.py", press="t,_")
|
||||
assert snap_compare("snapshot_apps/layer_order_independence.py", press="t,_")
|
||||
|
||||
|
||||
def test_columns_height(snap_compare):
|
||||
|
||||
Reference in New Issue
Block a user