desktop_notifications: handle multiple KDE update notifications

Current KDE seems to like showing us multiple update available
notifications. So the test must dismiss all of them. See:
https://bugzilla.redhat.com/show_bug.cgi?id=1730482

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-07-16 13:58:15 -07:00
parent 1475813b75
commit 34321dae8f

View File

@ -94,10 +94,15 @@ sub run {
# this is the case from F30 and earlier where we know this # this is the case from F30 and earlier where we know this
# was the *only* notification; at this point we've passed # was the *only* notification; at this point we've passed
return if match_has_tag "desktop_update_notification_only"; return if match_has_tag "desktop_update_notification_only";
# otherwise, we need to close the update notification then # otherwise, we need to close the update notification(s)
# check there are no others # then check there are no others; see
# https://bugzilla.redhat.com/show_bug.cgi?id=1730482 for
# KDE showing multiple notifications
my $count = 10;
while (check_screen "desktop_update_notification", 5 && $count > 0) {
assert_and_click "desktop_update_notification"; assert_and_click "desktop_update_notification";
} }
}
# the order and number of systray icons varies in KDE, so we # the order and number of systray icons varies in KDE, so we
# can't really just use a systray 'no notifications' needle. # can't really just use a systray 'no notifications' needle.
# instead open up the 'extended systray' thingy and click on # instead open up the 'extended systray' thingy and click on