From 1edde539888666c92165b1854e15be9b4d3eed4e Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 3 May 2024 14:22:59 -0700 Subject: [PATCH] Try and avoid launcher typing issues in more KDE tests This is the same thing we do for the app_startstop tests in aaa_setup, applied to a couple of other places we use menu_launch_type in KDE and it's having trouble. Signed-off-by: Adam Williamson --- tests/desktop_update_graphical.pm | 7 +++++++ tests/graphical_upgrade_run.pm | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/tests/desktop_update_graphical.pm b/tests/desktop_update_graphical.pm index 99c16dfb..af25fd80 100644 --- a/tests/desktop_update_graphical.pm +++ b/tests/desktop_update_graphical.pm @@ -23,6 +23,13 @@ sub run { # run the updater if ($desktop eq 'kde') { + # try and avoid double-typing issues, same way we do + # for apps_startstop test + wait_screen_change { send_key 'super'; }; + wait_still_screen 3; + send_key "k"; + wait_still_screen 5; + send_key "esc"; menu_launch_type('discover'); # Wait for it to run and maximize it to make sure we see the # Updates entry diff --git a/tests/graphical_upgrade_run.pm b/tests/graphical_upgrade_run.pm index d9fe3110..262a8fee 100644 --- a/tests/graphical_upgrade_run.pm +++ b/tests/graphical_upgrade_run.pm @@ -41,6 +41,15 @@ sub run { } # Let's check, that the desktop is shown. check_desktop(); + # On KDE, try and avoid double-typing issues, same way we do + # for apps_startstop test + if ($desktop eq "kde") { + wait_screen_change { send_key 'super'; }; + wait_still_screen 3; + send_key "k"; + wait_still_screen 5; + send_key "esc"; + } # Start the package manager application depending # on which DE we are on.