diff --git a/needles/gnome/reboot_entry-20200817.json b/needles/gnome/reboot_entry-20200817.json new file mode 100644 index 00000000..bfd8e1ff --- /dev/null +++ b/needles/gnome/reboot_entry-20200817.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 757, + "height": 19, + "ypos": 227, + "type": "match", + "width": 67 + } + ], + "properties": [], + "tags": [ + "reboot_entry" + ] +} diff --git a/needles/gnome/reboot_entry-20200817.png b/needles/gnome/reboot_entry-20200817.png new file mode 100644 index 00000000..17cf5609 Binary files /dev/null and b/needles/gnome/reboot_entry-20200817.png differ diff --git a/needles/kde/logout_confirm_kde.json b/needles/kde/logout_confirm_kde.json index 1600f584..06cdc78b 100644 --- a/needles/kde/logout_confirm_kde.json +++ b/needles/kde/logout_confirm_kde.json @@ -2,7 +2,8 @@ "properties": [], "tags": [ "log_out_confirm", - "power_off_confirm" + "power_off_confirm", + "restart_confirm" ], "area": [ { @@ -13,4 +14,4 @@ "type": "match" } ] -} \ No newline at end of file +} diff --git a/tests/desktop_login.pm b/tests/desktop_login.pm index 34b89482..d252860c 100644 --- a/tests/desktop_login.pm +++ b/tests/desktop_login.pm @@ -165,18 +165,19 @@ sub reboot_system { # we can access the operationg system switching controls. assert_and_click "system_menu_button"; assert_and_click "power_entry"; - if ($desktop eq "gnome") { - # In Gnome, some of the entries are brought together, while in KDE they are - # split and it does not seem correct to me to assign restarting tags to - # needles powering off the machine. So I split this for KDE and Gnome. - # This holds true for Gnome: + my $relnum = get_release_number; + if ($desktop eq "gnome" && $relnum < 33) { + # In GNOME before F33, some of the entries are brought together, while + # in KDE and GNOME from F33 onwards they are split and it does not seem + # correct to me to assign restarting tags to needles powering off the + # machine. So I split this for KDE and GNOME < F33: assert_and_click "power_off_entry"; assert_and_click "restart_confirm"; } else { - # And for KDE: + # And for KDE and GNOME >= F33: assert_and_click "reboot_entry"; - assert_and_click "log_out_confirm"; + assert_and_click "restart_confirm"; } } # When we are outside KDE (not logged in), the only way to reboot is to click