diff --git a/lib/cockpit.pm b/lib/cockpit.pm index 1e53fbff..21c5126a 100644 --- a/lib/cockpit.pm +++ b/lib/cockpit.pm @@ -37,9 +37,16 @@ sub start_cockpit { sub select_cockpit_update { # This method navigates to to the updates screen - assert_screen ["cockpit_software_updates", "cockpit_leftbar_scroll"], 120; + # 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; click_lastmatch; - assert_and_click "cockpit_software_updates" if (match_has_tag "cockpit_leftbar_scroll"); + if (match_has_tag "cockpit_search") { + send_key "up"; + assert_and_click "cockpit_software_updates"; + } # wait for the updates to download assert_screen 'cockpit_updates_check', 300; } diff --git a/needles/cockpit/cockpit_leftbar_scroll-20200530.json b/needles/cockpit/cockpit_leftbar_scroll-20200530.json deleted file mode 100644 index 7a51ea98..00000000 --- a/needles/cockpit/cockpit_leftbar_scroll-20200530.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "area": [ - { - "height": 55, - "type": "match", - "width": 43, - "xpos": 196, - "ypos": 711 - } - ], - "properties": [], - "tags": [ - "cockpit_leftbar_scroll" - ] -} \ No newline at end of file diff --git a/needles/cockpit/cockpit_leftbar_scroll-20200530.png b/needles/cockpit/cockpit_leftbar_scroll-20200530.png deleted file mode 100644 index 8e16a589..00000000 Binary files a/needles/cockpit/cockpit_leftbar_scroll-20200530.png and /dev/null differ diff --git a/needles/cockpit/cockpit_search-20220503.json b/needles/cockpit/cockpit_search-20220503.json new file mode 100644 index 00000000..689f4bda --- /dev/null +++ b/needles/cockpit/cockpit_search-20220503.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "height": 20, + "ypos": 210, + "width": 18, + "type": "match", + "xpos": 31 + } + ], + "properties": [], + "tags": [ + "cockpit_search" + ] +} diff --git a/needles/cockpit/cockpit_search-20220503.png b/needles/cockpit/cockpit_search-20220503.png new file mode 100644 index 00000000..087188b5 Binary files /dev/null and b/needles/cockpit/cockpit_search-20220503.png differ