From ccb67bd5a73a33e3114b650cb202614746da42aa Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 17 Apr 2019 10:32:04 -0700 Subject: [PATCH] Extend gnome-software/issues/582 workaround to 2 auth requests It seems that when this problem happens now we get *two* auth requests, so we need to handle that. Signed-off-by: Adam Williamson --- tests/desktop_update_graphical.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/desktop_update_graphical.pm b/tests/desktop_update_graphical.pm index 78f9634a..976321b4 100644 --- a/tests/desktop_update_graphical.pm +++ b/tests/desktop_update_graphical.pm @@ -31,6 +31,12 @@ sub run { record_soft_failure "spurious 'auth required' - https://gitlab.gnome.org/GNOME/gnome-software/issues/582"; # bit sloppy but correct for both... type_very_safely "weakpassword\n"; + # as of 2019-04 when we hit this bug it seems to ask for + # auth *twice*, so handle that + sleep 3; + if (check_screen "auth_required", 1) { + type_very_safely "weakpassword\n"; + } } # this launches GNOME Software on GNOME, dunno for any other # desktop yet