From 0b7a9cf3c8553cf2a9ee5941eee964d46f4a006c Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 24 Apr 2020 10:39:12 -0700 Subject: [PATCH] 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 --- tests/desktop_login.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/desktop_login.pm b/tests/desktop_login.pm index 281d7f91..606cf492 100644 --- a/tests/desktop_login.pm +++ b/tests/desktop_login.pm @@ -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") {