From f3316892d4890608e396bd07c455843eaa96f7c2 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Thu, 11 Aug 2022 14:44:08 +0200 Subject: [PATCH] Add one extra Esc key to come back fully from the dialogue. --- tests/applications/clocks/about.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/applications/clocks/about.pm b/tests/applications/clocks/about.pm index 5aede460..d4421b39 100644 --- a/tests/applications/clocks/about.pm +++ b/tests/applications/clocks/about.pm @@ -17,6 +17,16 @@ sub run { assert_and_click("gnome_button_credits"); assert_screen("clocks_credits_shown"); send_key("esc"); + # We have been hitting the Esc key here to + # leave the About dialogue, but it seems that + # this time (Fedora37), it needs an extra Esc hit, because + # the Credit screen takes one to come back + # to the previous screen. + # Hit one more Esc, if the About window + # is still displayed + if (check_screen("clocks_about_displayed")) { + send_key("esc"); + } # Use the menu to see the shortcuts assert_and_click("gnome_burger_menu");