Skip to content

Commit 86661e7

Browse files
committed
fix(tests): the answered-elsewhere modal test settles the screen before its first screenshot
- The wait condition saw the modal's widgets mounted; the export read the modal screen's compositor, which is empty until its first layout, so on a slow host the screenshot had no rows.
1 parent 9a44d46 commit 86661e7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/tui/test_tui_headless.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ async def scenario() -> None:
526526
),
527527
"the question modal",
528528
)
529+
await pilot.pause()
529530
assert "Which name?" in app.export_screenshot().replace(" ", " ")
530531
with logs.open("a", encoding="utf-8") as fh:
531532
fh.write(json.dumps(answer) + "\n")

0 commit comments

Comments
 (0)