From 10b7f66a022b1c7873ae3c2f1df11ebe1c47543a Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 27 Feb 2024 10:17:38 -0800 Subject: [PATCH] desktop_printing: wait a bit after switching back from console This test is failing a lot recently on KDE because when we try to launch konsole immediately after returning from a console to the desktop, it is mistyped and we get a browser instead. Let's try a little sleep after the switch back in case KDE just needs to settle down a bit. Signed-off-by: Adam Williamson --- tests/desktop_printing.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/desktop_printing.pm b/tests/desktop_printing.pm index 4d56ee47..59f71233 100644 --- a/tests/desktop_printing.pm +++ b/tests/desktop_printing.pm @@ -49,6 +49,9 @@ sub run { $term = "konsole"; } + # give the desktop a few seconds to settle, we seem to be getting + # a lot of mis-types in KDE if we do not, as of 2024-02 + wait_still_screen(3); # Let's open the terminal. We will use it to start the applications # as well as to check for the name of the printed file. menu_launch_type($term);