From 662f89f9d40c00af02c0421000d2b4077d507ae1 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Thu, 28 Mar 2019 10:54:56 +0100 Subject: [PATCH] Fix Firefox failure. --- tests/apps_startstop/gnome/firefox.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/apps_startstop/gnome/firefox.pm b/tests/apps_startstop/gnome/firefox.pm index 16e0b0a8..3f213a91 100644 --- a/tests/apps_startstop/gnome/firefox.pm +++ b/tests/apps_startstop/gnome/firefox.pm @@ -16,9 +16,12 @@ sub run { assert_screen 'firefox'; # Close the application, but since Firefox needs special handling # we are not using the common routine, but deal with this individually instead - send_key 'alt-f4'; + assert_and_click 'apps_stop'; + wait_still_screen 2; # deal with warning screen - assert_and_click 'apps_run_firefox_stop'; + if (check_screen("apps_run_firefox_stop", 1)) { + assert_and_click 'apps_run_firefox_stop'; + } wait_still_screen 2; # check that the application has stopped assert_screen 'workspace';