1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-25 07:13:09 +00:00

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 <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2021-11-24 10:24:54 -08:00
parent af31d4e8ae
commit 74927d154a

View File

@ -17,7 +17,12 @@ sub run {
# Close the application # Close the application
send_key 'alt-f4'; send_key 'alt-f4';
wait_still_screen 2; 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 { sub test_flags {