Skip to content

Commit

Permalink
webui: tests: Robustify JS error modal pixel test
Browse files Browse the repository at this point in the history
Wait for the "Report issue" button to become clickable before taking a
screenshot.
  • Loading branch information
KKoukiou committed Oct 26, 2023
1 parent 665e531 commit cfc150e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/webui/test/check-basic
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ class TestBasic(anacondalib.VirtInstallMachineCase):
b.wait_in_text("#critical-error-bz-report-modal-details", "Error: Unexpected JS error")
time.sleep(2)

b.wait_visible("a:contains('Report issue'):not([disabled])")
b.assert_pixels(
"#critical-error-bz-report-modal.pf-v5-c-modal-box",
"js-error-modal",
Expand Down
2 changes: 1 addition & 1 deletion ui/webui/test/reference

0 comments on commit cfc150e

Please sign in to comment.