diff --git a/lib/utils.pm b/lib/utils.pm index 1a6a67bd..b582b82e 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -865,7 +865,10 @@ sub check_desktop { assert_screen "apps_menu_button", $args{timeout}; # GNOME 40 starts on the overview by default; for consistency with # older GNOME and KDE, let's just close it - send_key "alt-f1" if match_has_tag "apps_menu_button_active"; + if (match_has_tag "apps_menu_button_active") { + send_key "alt-f1"; + assert_screen "apps_menu_button_inactive"; + } } sub download_modularity_tests { diff --git a/needles/gnome/apps_menu_button-20190625.json b/needles/gnome/apps_menu_button-20190625.json index 861cac07..4252966a 100644 --- a/needles/gnome/apps_menu_button-20190625.json +++ b/needles/gnome/apps_menu_button-20190625.json @@ -13,6 +13,7 @@ "DESKTOP-gnome", "ENV-DISTRI-fedora", "LANGUAGE-english", - "apps_menu_button" + "apps_menu_button", + "apps_menu_button_inactive" ] -} \ No newline at end of file +} diff --git a/needles/gnome/apps_menu_button-20210316.json b/needles/gnome/apps_menu_button-20210316.json new file mode 100644 index 00000000..34fc0c0b --- /dev/null +++ b/needles/gnome/apps_menu_button-20210316.json @@ -0,0 +1,19 @@ +{ + "area": [ + { + "xpos": 15, + "height": 15, + "ypos": 9, + "type": "match", + "width": 67 + } + ], + "properties": [], + "tags": [ + "DESKTOP-gnome", + "ENV-DISTRI-fedora", + "LANGUAGE-english", + "apps_menu_button", + "apps_menu_button_inactive" + ] +} diff --git a/needles/gnome/apps_menu_button-20210316.png b/needles/gnome/apps_menu_button-20210316.png new file mode 100644 index 00000000..7f2ecfcc Binary files /dev/null and b/needles/gnome/apps_menu_button-20210316.png differ diff --git a/needles/gnome/apps_menu_button_active-20210316.json b/needles/gnome/apps_menu_button_active-20210316.json new file mode 100644 index 00000000..f7bee50a --- /dev/null +++ b/needles/gnome/apps_menu_button_active-20210316.json @@ -0,0 +1,19 @@ +{ + "area": [ + { + "height": 15, + "xpos": 15, + "ypos": 9, + "type": "match", + "width": 67 + } + ], + "properties": [], + "tags": [ + "DESKTOP-gnome", + "ENV-DISTRI-fedora", + "LANGUAGE-english", + "apps_menu_button", + "apps_menu_button_active" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps_menu_button_active-20210316.png b/needles/gnome/apps_menu_button_active-20210316.png new file mode 100644 index 00000000..5b9602b2 Binary files /dev/null and b/needles/gnome/apps_menu_button_active-20210316.png differ