From 1b37200446d45e9cc0d64e756062d1e3e384329e Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 11 Jun 2020 16:00:56 -0700 Subject: [PATCH] Work around GNOME Shell app submenu bug See https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2878 . GNOME 3.37.2 seems to have a bug with submenus in the app menu; the first time you open one you can't scroll through it using the keyboard. On every open after the first it works fine. This is a quick and dirty workaround - when we're dealing with a submenu, open it then close it then open it again. Signed-off-by: Adam Williamson --- lib/utils.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/utils.pm b/lib/utils.pm index c2bd23ae..3ae8e4ea 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -806,6 +806,11 @@ sub start_with_launcher { if ($submenu) { assert_and_click $submenu; wait_still_screen 5; + # workaround for https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2878 + send_key 'esc'; + wait_still_screen 3; + assert_and_click $submenu; + wait_still_screen 3; } # Click on the launcher if (!check_screen($launcher)) {