Commit 0254cdb6 authored by Harald Sitter's avatar Harald Sitter

port away from wait still screen

it's long deprecated and internally only a sleep anyway. a fairly long
sleep though. so use short sleeps instead. it's not ideal but probably the
least regressive approach to get away from the deprecation
parent a65ef6c3
......@@ -113,7 +113,7 @@ sub maybe_login {
if (check_screen 'sddm', 16) {
type_password $testapi::password;
send_key 'ret';
wait_still_screen;
sleep 4;
}
}
......
......@@ -18,7 +18,7 @@ sub x11_start_program($$$) {
mouse_hide(1);
check_screen('desktop-runner', $timeout);
type_string $program;
wait_still_screen;
sleep 2;
send_key "ret";
}
......
......@@ -77,7 +77,7 @@ sub run {
assert_screen 'folder-desktop';
assert_and_click 'plasma-launcher';
assert_screen 'kickoff-popup';
wait_still_screen;
sleep 2;
send_key 'esc';
assert_screen 'folder-desktop';
}
......
......@@ -27,7 +27,7 @@ sub run {
# Starts the Application Launcher
assert_and_click 'plasma-launcher';
wait_still_screen;
sleep(2);
# Switches to the Application Tab
assert_screen 'kickoff-favorite';
......@@ -39,7 +39,7 @@ sub run {
assert_and_click 'kickoff-add-to-favorite';
assert_screen 'kickoff-favorite-okular', 60;
send_key 'esc';
wait_still_screen;
sleep(2);
assert_and_click 'plasma-launcher';
send_key 'esc';
......@@ -52,7 +52,7 @@ sub run {
# Removes Okular from the favorites tab
assert_and_click 'plasma-launcher';
wait_still_screen;
sleep(2);
# Move the mouse far far away in an attempt to not hit
# https://bugs.kde.org/show_bug.cgi?id=407517
# which may also be a timing issue for us here as technically we shouldn't
......
......@@ -104,12 +104,12 @@ sub run {
type_password $testapi::password;
send_key 'ret';
# ugh, sddm has no way to get us back, start a new session?
wait_still_screen;
sleep 2;
assert_and_click 'plasma-launcher', timeout => 60; # 60 seconds since we don't assert desktop
assert_and_click 'kickoff-leave';
assert_and_click 'kickoff-leave-logout';
assert_and_click 'ksmserver-logout';
wait_still_screen;
sleep 2;
# we are back in our regular session, unlock and be happy
# done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment