From fd26d347fe3697264acc4893d9494886c6ca2224 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 12 Jun 2020 12:28:18 -0700 Subject: [PATCH] Workaround unexpected authentication required dialog in g-i-s https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/issues/106 This started happening after the data center move. Really not sure why. Signed-off-by: Adam Williamson --- lib/utils.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/utils.pm b/lib/utils.pm index 3ae8e4ea..c30acd89 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -617,7 +617,14 @@ sub gnome_initial_setup { # https://bugzilla.gnome.org/show_bug.cgi?id=794825 @nexts = grep {$_ ne 'software'} @nexts; - assert_screen "next_button", $args{timeout}; + assert_screen ["next_button", "auth_required"], $args{timeout}; + # workaround auth dialog appearing to change timezone even + # though timezone screen is disabled + if (match_has_tag("auth_required")) { + record_soft_failure "Unexpected authentication required: https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/issues/106"; + send_key "esc"; + assert_screen "next_button"; + } # wait a bit in case of animation wait_still_screen 3; # GDM 3.24.1 dumps a cursor in the middle of the screen here...