From a9f54e9a509f02f797aca808d7d14d69f959328b Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 5 Aug 2021 11:22:25 -0700 Subject: [PATCH] Try to avoid a race in GNOME check_desktop We can match on apps_menu_button_active before the overview has totally loaded in, and it seems the alt-f1 press can be dropped in that case. Add a wait_still_screen to try and avoid that. Signed-off-by: Adam Williamson --- lib/utils.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils.pm b/lib/utils.pm index 30444df3..39a8e434 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -878,6 +878,7 @@ sub check_desktop { # GNOME 40 starts on the overview by default; for consistency with # older GNOME and KDE, let's just close it if (match_has_tag "apps_menu_button_active") { + wait_still_screen 3; send_key "alt-f1"; assert_screen "apps_menu_button_inactive"; }