From d43b28bb9aefaeb9ffe68efd88d1db515dcbd0bb Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 31 Jul 2025 17:40:05 -0700 Subject: [PATCH] Tweak _boot_to_anaconda web UI flow We never get direct to installmethod any more, I'm pretty sure - we always go through language selection. This may change if we ever fix up the gnome-initial-setup stuff, but for now let's simplify. However, web UI now has a date/time page that shows on KDE but apparently not on GNOME. So if we hit that, click through it. Signed-off-by: Adam Williamson --- tests/_boot_to_anaconda.pm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/_boot_to_anaconda.pm b/tests/_boot_to_anaconda.pm index cf94ada8..a3035f9f 100644 --- a/tests/_boot_to_anaconda.pm +++ b/tests/_boot_to_anaconda.pm @@ -198,11 +198,11 @@ sub run { } } # wait for anaconda to appear - unless (check_screen ["anaconda_select_install_lang", "anaconda_webui_installmethod"], 300) { + unless (check_screen "anaconda_select_install_lang", 300) { # may be hitting https://bugzilla.redhat.com/show_bug.cgi?id=2329581, # try pressing a key send_key "spc"; - assert_screen ["anaconda_select_install_lang", "anaconda_webui_installmethod"], 300; + assert_screen "anaconda_select_install_lang", 300; record_soft_failure "boot hung until key pressed - #2329581"; } # on webUI path set a var so later tests know @@ -231,10 +231,15 @@ sub run { # the nag screen can take a LONG time to appear sometimes). # If the hub appears, return - we're done now. If Rawhide # warning dialog appears, accept it. - if (check_screen ["anaconda_rawhide_accept_fate", "anaconda_main_hub", "anaconda_webui_installmethod"], 180) { + if (check_screen ["anaconda_rawhide_accept_fate", "anaconda_main_hub", "anaconda_webui_installmethod", "anaconda_webui_datetime"], 180) { if (match_has_tag("anaconda_rawhide_accept_fate")) { assert_and_click "anaconda_rawhide_accept_fate"; } + elsif (match_has_tag("anaconda_webui_datetime")) { + assert_and_click "anaconda_webui_next"; + assert_screen "anaconda_webui_installmethod"; + return; + } else { # this is when the hub appeared already, we're done _handle_incomplete_hub;