mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-28 16:43:09 +00:00
116 lines
3.1 KiB
Perl
116 lines
3.1 KiB
Perl
use base "anacondatest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# Check whether we have arrived in the main installation screen.
|
|
assert_screen("win_setup_main", timeout=>300); #
|
|
|
|
# Set up keyboard layouts or languages. For our purposes, a simple
|
|
# click on the Next button will do.
|
|
assert_and_click "win_setup_next";
|
|
|
|
# Start installation
|
|
assert_and_click "win_setup_install";
|
|
|
|
# Accept the EULA.
|
|
assert_and_click "win_setup_eula_accept";
|
|
assert_and_click "win_setup_next";
|
|
|
|
# Select the custom installation
|
|
assert_and_click "win_setup_custom_install";
|
|
|
|
# The drive 0 will always be empty, so just click Next to continue
|
|
assert_and_click "win_setup_next",;
|
|
|
|
# Confirm the region, the default US region will be ok.
|
|
assert_and_click("win_setup_yes", timeout=>600);
|
|
|
|
# Confirm the keyboard layout, the default US keyboard will be ok.
|
|
assert_and_click "win_setup_yes";
|
|
|
|
# Skip adding the second keyboard, we are not interested anyway.
|
|
assert_and_click "win_setup_skip";
|
|
|
|
# If no internet is detected, deal with no internet else connect
|
|
# to a local domain.
|
|
|
|
if (check_screen("win_setup_no_internet", timeout=>120)) {
|
|
assert_and_click "win_setup_dont_have_net";
|
|
assert_and_click "win_setup_limited";
|
|
} else {
|
|
# Join a local domain
|
|
assert_and_click("win_setup_local_account");
|
|
}
|
|
assert_and_click "win_setup_bluenext";
|
|
|
|
# Fill-in the account name
|
|
assert_and_click "win_setup_select_username";
|
|
sleep 1;
|
|
type_very_safely "Fedora";
|
|
assert_and_click "win_setup_bluenext";
|
|
|
|
# Fill-in the password
|
|
assert_and_click "win_setup_select_password";
|
|
sleep 1;
|
|
type_very_safely "weakpassword";
|
|
assert_and_click "win_setup_bluenext";
|
|
|
|
# Confirm the password
|
|
assert_and_click "win_setup_select_password";
|
|
sleep 1;
|
|
type_very_safely "weakpassword";
|
|
assert_and_click "win_setup_bluenext";
|
|
|
|
# Deal with security questions
|
|
# What was your first pet's name?
|
|
assert_and_click "win_setup_security_question";
|
|
assert_and_click "win_setup_your_pet";
|
|
sleep 1;
|
|
send_key "tab";
|
|
sleep 1;
|
|
type_very_safely "Bob";
|
|
assert_and_click "win_setup_bluenext";
|
|
|
|
# What was your childhood nickname?
|
|
assert_and_click "win_setup_security_question";
|
|
assert_and_click "win_setup_childhood_nickname";
|
|
sleep 1;
|
|
send_key "tab";
|
|
sleep 1;
|
|
type_very_safely "Bob";
|
|
assert_and_click "win_setup_bluenext";
|
|
|
|
# What was the name of your oldest cousin?
|
|
assert_and_click "win_setup_security_question";
|
|
assert_and_click "win_setup_oldest_cousin";
|
|
sleep 1;
|
|
send_key "tab";
|
|
sleep 1;
|
|
type_very_safely "Bob";
|
|
assert_and_click "win_setup_bluenext";
|
|
|
|
# Refuse the activity history.
|
|
assert_and_click "win_setup_blueno";
|
|
|
|
# Refuse digital assistant
|
|
assert_and_click "win_setup_decline";
|
|
|
|
# Accept suggested values (bad but fast and easy)
|
|
assert_and_click "win_setup_accept";
|
|
|
|
# Check if booted
|
|
assert_screen("win_setup_booted_logged", timeout=>600);
|
|
|
|
}
|
|
|
|
sub test_flags {
|
|
return { fatal => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|