Add tests for placeholder widget.

This commit is contained in:
Rodrigo Girão Serrão
2022-11-18 15:14:56 +00:00
parent 21630e07fc
commit a87c9ca916
4 changed files with 207 additions and 14 deletions

File diff suppressed because one or more lines are too long

View File

@@ -71,6 +71,11 @@ def test_buttons_render(snap_compare):
assert snap_compare(WIDGET_EXAMPLES_DIR / "button.py", press=["tab"])
def test_placeholder_render(snap_compare):
# Testing the rendering of the multiple placeholder variants and labels.
assert snap_compare(WIDGET_EXAMPLES_DIR / "placeholder.py")
def test_datatable_render(snap_compare):
press = ["tab", "down", "down", "right", "up", "left"]
assert snap_compare(WIDGET_EXAMPLES_DIR / "data_table.py", press=press)