diff --git a/lib/cockpit.pm b/lib/cockpit.pm index 33be0586..3fe933a6 100644 --- a/lib/cockpit.pm +++ b/lib/cockpit.pm @@ -39,7 +39,9 @@ sub start_cockpit { sub select_cockpit_update { # This method navigates to to the updates screen - assert_and_click "cockpit_software_updates", '', 120; + assert_screen ["cockpit_software_updates", "cockpit_leftbar_scroll"], 120; + click_lastmatch; + 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; } diff --git a/needles/cockpit/cockpit_leftbar_scroll-20200530.json b/needles/cockpit/cockpit_leftbar_scroll-20200530.json new file mode 100644 index 00000000..15758b3f --- /dev/null +++ b/needles/cockpit/cockpit_leftbar_scroll-20200530.json @@ -0,0 +1,22 @@ +{ + "area": [ + { + "xpos": 270, + "type": "match", + "height": 15, + "ypos": 744, + "width": 73 + }, + { + "xpos": 196, + "ypos": 711, + "width": 43, + "height": 55, + "type": "match" + } + ], + "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 new file mode 100644 index 00000000..8e16a589 Binary files /dev/null and b/needles/cockpit/cockpit_leftbar_scroll-20200530.png differ diff --git a/needles/cockpit/logs_entry_detail-20200530.json b/needles/cockpit/logs_entry_detail-20200530.json new file mode 100644 index 00000000..5aba7abe --- /dev/null +++ b/needles/cockpit/logs_entry_detail-20200530.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "height": 14, + "width": 163, + "ypos": 416, + "xpos": 388 + } + ], + "properties": [], + "tags": [ + "cockpit_logs_detail" + ] +} \ No newline at end of file diff --git a/needles/cockpit/logs_entry_detail-20200530.png b/needles/cockpit/logs_entry_detail-20200530.png new file mode 100644 index 00000000..335fff1c Binary files /dev/null and b/needles/cockpit/logs_entry_detail-20200530.png differ diff --git a/needles/cockpit/services_entry-20200530.json b/needles/cockpit/services_entry-20200530.json new file mode 100644 index 00000000..e185ec7d --- /dev/null +++ b/needles/cockpit/services_entry-20200530.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "ypos": 455, + "height": 17, + "width": 76, + "type": "match", + "xpos": 269 + } + ], + "properties": [], + "tags": [ + "cockpit_services_entry" + ] +} \ No newline at end of file diff --git a/needles/cockpit/services_entry-20200530.png b/needles/cockpit/services_entry-20200530.png new file mode 100644 index 00000000..f1946ae7 Binary files /dev/null and b/needles/cockpit/services_entry-20200530.png differ