1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 22:13:08 +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:
Adam Williamson 2020-04-24 10:39:12 -07:00
parent fd3e4e3280
commit 0b7a9cf3c8

View File

@ -140,7 +140,7 @@ sub switch_user {
# Switch the user, i.e. leave the current user logged in and # Switch the user, i.e. leave the current user logged in and
# log in another user simultaneously. # log in another user simultaneously.
send_key "ret"; 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"; assert_and_click "locked_screen_switch_user";
} }
elsif (check_screen "system_menu_button") { elsif (check_screen "system_menu_button") {