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 <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-06-11 16:00:56 -07:00
parent 87af7d4ecd
commit 1b37200446

View File

@ -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)) {