1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-25 07:13:09 +00:00

cockpit: retry the 'services entry' click if it fails

cockpit test often seems to fail because the click on a services
entry to open the services detail screen just gets lost. Let's
wait longer before trying it, and retry once if it fails.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-07-25 14:13:28 -07:00
parent 3fe3fc453c
commit cf709af13c

View File

@ -23,7 +23,9 @@ sub run {
wait_still_screen 2;
# click on an entry
assert_and_click "cockpit_services_entry";
# check we get to a detail screen
# check we get to the appropriate detail screen...but this click
# often gets lost for some reason, so retry it once
assert_and_click "cockpit_services_entry" unless (check_screen "cockpit_services_detail");
assert_screen "cockpit_services_detail";
}