mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-22 05:53:09 +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
@ -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 New Issue
Block a user