mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-25 20:20:56 +00:00
desktop_login: give 'ret' keypress a bit of time to take effect
The default timeout for check_screen is 0, so we were only giving the enter key press a fraction of a second to take effect before expecting to see locked_screen_switch_user. This is too tight, see https://openqa.fedoraproject.org/tests/586257 . Let's give it five seconds before we give up. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
fd3e4e3280
commit
0b7a9cf3c8
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ sub switch_user {
|
|||
# Switch the user, i.e. leave the current user logged in and
|
||||
# log in another user simultaneously.
|
||||
send_key "ret";
|
||||
if (check_screen "locked_screen_switch_user") {
|
||||
if (check_screen "locked_screen_switch_user", 5) {
|
||||
assert_and_click "locked_screen_switch_user";
|
||||
}
|
||||
elsif (check_screen "system_menu_button") {
|
||||
|
|
Loading…
Reference in a new issue