From c0255c5682ebb3059a7c79c50fddf7e120c205cc Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: May 03 2022 20:14:00 +0000 Subject: Revert a change accidentally included in previous commit So it can be re-applied separately with correct message. Signed-off-by: Adam Williamson --- diff --git a/lib/cockpit.pm b/lib/cockpit.pm index 21c5126..1e53fbf 100644 --- a/lib/cockpit.pm +++ b/lib/cockpit.pm @@ -37,16 +37,9 @@ sub start_cockpit { sub select_cockpit_update { # This method navigates to to the updates screen - # From Firefox 100 on, we get 'adaptive scrollbars', which means - # the scrollbar is just invisible unless you moved the mouse - # recently. So we click in the search box and hit 'up' to scroll - # the sidebar to the bottom if necessary - assert_screen ["cockpit_software_updates", "cockpit_search"], 120; + assert_screen ["cockpit_software_updates", "cockpit_leftbar_scroll"], 120; click_lastmatch; - if (match_has_tag "cockpit_search") { - send_key "up"; - assert_and_click "cockpit_software_updates"; - } + assert_and_click "cockpit_software_updates" if (match_has_tag "cockpit_leftbar_scroll"); # wait for the updates to download assert_screen 'cockpit_updates_check', 300; }