From 4cc51a51a02964bf1cb9f1426cce2101501f7942 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 16 Jul 2019 14:40:10 -0700 Subject: [PATCH] Dismiss multiple update notifications in app start/stop test too Signed-off-by: Adam Williamson --- tests/apps_startstop/kde/aasetting.pm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/apps_startstop/kde/aasetting.pm b/tests/apps_startstop/kde/aasetting.pm index d8205fee..4aa3a920 100644 --- a/tests/apps_startstop/kde/aasetting.pm +++ b/tests/apps_startstop/kde/aasetting.pm @@ -30,11 +30,15 @@ sub run { wait_still_screen 2; # Close the application 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 - # over some applications preventing OpenQA to find - # correct buttons, which creates false positives. - if (check_screen "desktop_update_notification_popup", 10) { + # over some applications preventing openQA to find + # correct buttons, which creates false positives. See + # 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"; } }