From de5eb208b54073e99d24937cf3ea17a08f33c146 Mon Sep 17 00:00:00 2001 From: Paolo Stivanin Date: Wed, 7 Dec 2022 15:22:25 +0100 Subject: [PATCH] Fix issue introduced with #16059 --- tests/security/yast2_users/add_users.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/security/yast2_users/add_users.pm b/tests/security/yast2_users/add_users.pm index 1f2a13bf8f4b..88587ddab5b8 100644 --- a/tests/security/yast2_users/add_users.pm +++ b/tests/security/yast2_users/add_users.pm @@ -74,8 +74,16 @@ sub run { # If no, check the user was created successfully assert_screen("Yast2-Users-Add-User-Created"); wait_screen_change { send_key "alt-o" }; - assert_screen("yast2-user-add_xterm_nokogiri"); + # Until bsc#1202053 is fixed, we need to send "enter" a couple of times before we can clear the console + if (check_screen("yast2-user-add_xterm_nokogiri", 10) { + send_key "ret"; + send_key "ret"; + } + + clear_console; + assert_screen("root-console-x11"); + # Exit x11 and turn to console wait_screen_change { send_key "alt-f4" }; select_console("root-console");