From 74927d154a8a79e5597267fde25924a60a8f59e2 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 24 Nov 2021 10:24:54 -0800 Subject: [PATCH] KDE apps: make firefox test handle no 'close tabs' case Lately Firefox sometimes just closes immediately, it doesn't show the 'close tabs' dialog. So let's make that optional, but check we quit properly. Signed-off-by: Adam Williamson --- tests/apps_startstop/kde/firefox.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/apps_startstop/kde/firefox.pm b/tests/apps_startstop/kde/firefox.pm index a4099605..12051f9e 100644 --- a/tests/apps_startstop/kde/firefox.pm +++ b/tests/apps_startstop/kde/firefox.pm @@ -17,7 +17,12 @@ sub run { # Close the application send_key 'alt-f4'; wait_still_screen 2; - assert_and_click 'firefox_close_tabs'; + # deal with warning screen + if (check_screen("firefox_close_tabs", 1)) { + click_lastmatch; + } + wait_still_screen 2; + assert_screen 'workspace'; } sub test_flags {