1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 14:03:09 +00:00

Dismiss multiple update notifications in app start/stop test too

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-07-16 14:40:10 -07:00
parent 43417f925c
commit 4cc51a51a0

View File

@ -30,11 +30,15 @@ sub run {
wait_still_screen 2; wait_still_screen 2;
# Close the application # Close the application
assert_and_click "kde_ok"; assert_and_click "kde_ok";
# If Updates Available notification is shown, we want # If Updates Available notification(s) is/are shown, we want
# to get rid of that, because it can be later displayed # to get rid of that, because it can be later displayed
# over some applications preventing OpenQA to find # over some applications preventing openQA to find
# correct buttons, which creates false positives. # correct buttons, which creates false positives. See
if (check_screen "desktop_update_notification_popup", 10) { # https://bugzilla.redhat.com/show_bug.cgi?id=1730482 for
# KDE showing multiple notifications
my $count = 10;
while ($count > 0 && check_screen "desktop_update_notification_popup", 5) {
$count -= 1;
assert_and_click "desktop_update_notification_popup"; assert_and_click "desktop_update_notification_popup";
} }
} }