From a99178732ac62940631e23d69cd91298ef5a636c Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 21 Feb 2023 18:28:28 -0800 Subject: [PATCH] desktop_notifications: handle KDE welcome screen on lives Signed-off-by: Adam Williamson --- tests/desktop_notifications.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/desktop_notifications.pm b/tests/desktop_notifications.pm index 8d7bd313..41473069 100644 --- a/tests/desktop_notifications.pm +++ b/tests/desktop_notifications.pm @@ -67,7 +67,7 @@ sub run { wait_still_screen 10, 30; # GDM 3.24.1 dumps a cursor in the middle of the screen here... mouse_hide; - if (get_var("DESKTOP") eq 'gnome') { + if ($desktop eq 'gnome') { # we have to hit enter to get the password dialog, and it # doesn't always work for some reason so just try it three # times @@ -78,6 +78,9 @@ sub run { send_key 'ret'; } check_desktop(timeout => 90); + # KDE lives on F38+ show the 'welcome tour' here and it messes + # with the needles because transparency, let's get rid + handle_welcome_screen if ($desktop eq 'kde' && !get_var("BOOTFROM")); # now, WE WAIT. this is just an unconditional wait - rather than # breaking if we see an update notification appear - so we catch # things that crash a few minutes after startup, etc.