From 6542a90203a2f8c6dfce240a8e9b6da469f315de Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Tue, 10 Jul 2018 16:44:19 +0200 Subject: [PATCH] Handle authentication. --- tests/desktop_upgrade_graphical.pm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/desktop_upgrade_graphical.pm b/tests/desktop_upgrade_graphical.pm index 8b6c58df..23b74f6f 100644 --- a/tests/desktop_upgrade_graphical.pm +++ b/tests/desktop_upgrade_graphical.pm @@ -61,12 +61,13 @@ sub run { # handle reboot confirm screen which pops up when user is # logged in (but don't fail if it doesn't as we're not testing # that) - if (check_screen 'gnome_reboot_confirm', 15) { - # on F27+, default is Cancel, earlier, default is Restart - my $version = lc(get_var("VERSION")); - send_key 'tab' if ($version eq 'rawhide' || $version > 26); - send_key 'ret'; - } + + if match_has_tag('desktop_package_tool_password'){ + type_very_safely(get_var('USER_PASSWORD','weakpassword')); + assert_and_click('desktop_package_tool_authenticate','',30); + } + + boot_to_login_screen; } else {