Fix flaky test due to pressed style of Show Details button

This commit is contained in:
Isaiah Odhner 2023-09-08 22:31:44 -04:00
parent c5353f4e7b
commit ea5ca0c90f
2 changed files with 228 additions and 233 deletions

File diff suppressed because one or more lines are too long

View File

@ -117,6 +117,7 @@ def test_paint_error_dialog(snap_compare, each_theme):
assert pilot.app.query_one("MessageBox .details_button")
# pilot.app.query_one("MessageBox .details_button", Button).press()
await pilot.click("MessageBox .details_button")
await pilot.pause(0.5) # avoid pressed state
assert snap_compare(PAINT, run_before=show_error)