Skip to content

Commit d55ece2

Browse files
committed
test: screenshot/log oopses
1 parent e2fac3b commit d55ece2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/common/testlib.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,6 +1590,9 @@ def assert_no_oops(self) -> None:
15901590
if self.have_test_api():
15911591
self.switch_to_top()
15921592
if self.eval_js("!!document.getElementById('navbar-oops')"):
1593+
if self.is_visible("#navbar-oops"):
1594+
self.snapshot("OOPS")
1595+
self.copy_js_log("OOPS")
15931596
assert not self.is_visible("#navbar-oops"), "Cockpit shows an Oops"
15941597

15951598

0 commit comments

Comments
 (0)