fix auto width glitch

This commit is contained in:
Will McGugan
2023-01-31 12:13:25 +01:00
parent dc1c4dad0e
commit be5a67e903
3 changed files with 167 additions and 0 deletions

View File

@@ -198,3 +198,9 @@ def test_demo(snap_compare):
def test_label_widths(snap_compare):
"""Test renderable widths are calculate correctly."""
assert snap_compare(SNAPSHOT_APPS_DIR / "label_widths.py")
def test_auto_width_input(snap_compare):
assert snap_compare(
SNAPSHOT_APPS_DIR / "auto_width_input.py", press=["tab", *"Hello"]
)