mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-25 07:44:37 +03:00
Test expand canvas dialog
This commit is contained in:
parent
ed679ab721
commit
faa9cefe85
File diff suppressed because one or more lines are too long
@ -12,7 +12,7 @@ PAINT = APPS_DIR / "paint.py"
|
||||
GALLERY = APPS_DIR / "gallery.py"
|
||||
|
||||
LARGER = (81, 38)
|
||||
"""Large enough to show the entire paint app."""
|
||||
"""Large enough to show the Textual Paint app's main UI and most dialogs comfortably."""
|
||||
LARGEST = (107, 42)
|
||||
"""Large enough to show the Edit Colors dialog, which is a bit oversized."""
|
||||
|
||||
@ -96,6 +96,12 @@ def test_paint_edit_colors_dialog(snap_compare, each_theme):
|
||||
|
||||
assert snap_compare(PAINT, run_before=open_edit_colors, terminal_size=LARGEST)
|
||||
|
||||
def test_paint_expand_canvas_dialog(snap_compare, each_theme):
|
||||
async def paste_large_content(pilot: Pilot[None]):
|
||||
pilot.app.paste("a" * 1000)
|
||||
|
||||
assert snap_compare(PAINT, run_before=paste_large_content, terminal_size=LARGER)
|
||||
|
||||
def test_gallery_app(snap_compare):
|
||||
assert snap_compare(GALLERY)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user