1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-09-22 23:17:21 +00:00

Handle authentication.

This commit is contained in:
Lukas Ruzicka 2018-07-10 16:44:19 +02:00
parent 1790a6e5d6
commit 6542a90203

View File

@ -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 {