mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-01-30 12:13:09 +00:00
select_cockpit_update: be more defensive against scrolls
This new way is working better, but a few times I've seen it fail, I think because it's matching the 'updates' link while it's still scrolling so when it clicks, the link has moved and the click fails. Let's wait a bit after we see it, then match *again* and click, instead of relying on the last match area. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
10f53ea1a0
commit
c9408e2335
@ -52,7 +52,8 @@ sub select_cockpit_update {
|
||||
click_lastmatch;
|
||||
if (match_has_tag "cockpit_search") {
|
||||
send_key_until_needlematch("cockpit_software_updates", "down", 10, 2);
|
||||
click_lastmatch;
|
||||
wait_still_screen 1;
|
||||
assert_and_click("cockpit_software_updates");
|
||||
}
|
||||
# wait for the updates to download
|
||||
assert_screen 'cockpit_updates_check', 300;
|
||||
|
Loading…
Reference in New Issue
Block a user