Skip to content

Commit

Permalink
Fix unlocking desktop on Plasma 5.16+
Browse files Browse the repository at this point in the history
In Plasma 5.16 (git master currently), the login and lock screen
behaviour changed, there's now a shorter timeout for the idle screen.

Previously, openQA would see the idle screen, press esc and then wait
for a screen change and then a still screen. This does not work with the
new behaviour as it practically waited for the idle screen again:
https://openqa.opensuse.org/tests/888171

Fix it by moving the delay before the esc keypress.
  • Loading branch information
Vogtinator committed Mar 25, 2019
1 parent a414516 commit 9783171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/x11utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ sub ensure_unlocked_desktop {
}
last; # desktop is unlocked, mission accomplished
}
wait_still_screen 2; # slow down loop
if (match_has_tag 'screenlock') {
wait_screen_change {
send_key 'esc'; # end screenlock
};
}
wait_still_screen 2; # slow down loop
die 'ensure_unlocked_desktop repeated too much. Check for X-server crash.' if ($counter eq 1); # die loop when generic-desktop not matched
}
}
Expand Down

0 comments on commit 9783171

Please sign in to comment.