diff --git a/needles/cockpit/join_complete-20191214.json b/needles/cockpit/join_complete-20191214.json new file mode 100644 index 00000000..587e51df --- /dev/null +++ b/needles/cockpit/join_complete-20191214.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "width": 348, + "ypos": 577, + "height": 18, + "xpos": 379 + } + ], + "properties": [], + "tags": [ + "cockpit_join_complete" + ] +} \ No newline at end of file diff --git a/needles/cockpit/join_complete-20191214.png b/needles/cockpit/join_complete-20191214.png new file mode 100644 index 00000000..499d06ce Binary files /dev/null and b/needles/cockpit/join_complete-20191214.png differ diff --git a/needles/cockpit/join_domain_button-link-20191214.json b/needles/cockpit/join_domain_button-link-20191214.json new file mode 100644 index 00000000..f8c4ef06 --- /dev/null +++ b/needles/cockpit/join_domain_button-link-20191214.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "width": 94, + "ypos": 579, + "xpos": 633, + "height": 15 + } + ], + "properties": [], + "tags": [ + "cockpit_join_domain_button" + ] +} \ No newline at end of file diff --git a/needles/cockpit/join_domain_button-link-20191214.png b/needles/cockpit/join_domain_button-link-20191214.png new file mode 100644 index 00000000..7d961e97 Binary files /dev/null and b/needles/cockpit/join_domain_button-link-20191214.png differ diff --git a/tests/realmd_join_cockpit.pm b/tests/realmd_join_cockpit.pm index cb090c43..a43eee7d 100644 --- a/tests/realmd_join_cockpit.pm +++ b/tests/realmd_join_cockpit.pm @@ -26,7 +26,19 @@ sub run { # check_type_string in cockpit because of that fucking constantly # scrolling graph start_cockpit(1); - assert_and_click "cockpit_join_domain_button"; + # on cockpit 209+ we have to scroll down before the button is + # visible + if (check_screen "cockpit_join_domain_button", 5) { + click_lastmatch; + } + else { + # to activate the right pane + assert_and_click "cockpit_main"; + send_key "pgdn"; + # wait out scroll... + wait_still_screen 2; + assert_and_click "cockpit_join_domain_button", 5; + } assert_screen "cockpit_join_domain"; send_key "tab"; sleep 3;