From 86a7f849e7b66636a6afb5f91145ca9e9928235c Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 2 Sep 2021 11:04:17 -0700 Subject: [PATCH] Fix root password screen handling in anaconda_help test Code isn't shared with _do_install_and_reboot, maybe we should fix that. Signed-off-by: Adam Williamson --- tests/anaconda_help.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/anaconda_help.pm b/tests/anaconda_help.pm index 09f5b203..0ef2fe5e 100644 --- a/tests/anaconda_help.pm +++ b/tests/anaconda_help.pm @@ -52,6 +52,10 @@ sub run { # we must unless (get_var("DESKTOP") eq "gnome" ) { assert_and_click "anaconda_main_hub_root_password"; + # from anaconda-35.22.1 onwards, we have to click 'enable root + # account' before typing the password. For older versions, + # clicking this needle does nothing but is harmless + assert_and_click "anaconda_install_root_password_screen"; type_safely "weakrootpassword"; send_key "tab"; type_safely "weakrootpassword";