1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-03-16 09:54:36 +00:00

cockpit: work around issue with selecting Update view

In recent Firefox, just pressing 'up' once doesn't seem to work
100% to scroll to the bottom of the list so we can see the Update
link. So, let's do it up to 3 times!

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2025-01-07 17:26:00 -08:00
parent e5fba0fea5
commit e440059247

View File

@ -51,9 +51,8 @@ sub select_cockpit_update {
assert_screen ["cockpit_software_updates", "cockpit_search"], 120;
click_lastmatch;
if (match_has_tag "cockpit_search") {
send_key "up";
wait_still_screen 2;
assert_and_click "cockpit_software_updates";
send_key_until_needlematch("cockpit_software_updates", "up", 3, 3);
click_lastmatch;
}
# wait for the updates to download
assert_screen 'cockpit_updates_check', 300;