mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-12-01 17:53:08 +00:00
Fix timing.
This commit is contained in:
parent
2d684d345d
commit
4a225cf312
@ -6,91 +6,91 @@ use utils;
|
|||||||
sub run {
|
sub run {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
# Check whether we have arrived in the main installation screen.
|
# Check whether we have arrived in the main installation screen.
|
||||||
assert_screen "win_setup_main", 300; #
|
assert_screen "win_setup_main", '', 300; #
|
||||||
|
|
||||||
# Set up keyboard layouts or languages. For our purposes, a simple
|
# Set up keyboard layouts or languages. For our purposes, a simple
|
||||||
# click on the Next button will do.
|
# click on the Next button will do.
|
||||||
assert_and_click "win_setup_next", 20;
|
assert_and_click "win_setup_next";
|
||||||
|
|
||||||
# Start installation
|
# Start installation
|
||||||
assert_and_click "win_setup_install", 30;
|
assert_and_click "win_setup_install";
|
||||||
|
|
||||||
# Accept the EULA.
|
# Accept the EULA.
|
||||||
assert_and_click "win_setup_eula_accept", 30;
|
assert_and_click "win_setup_eula_accept";
|
||||||
assert_and_click "win_setup_next", 20;
|
assert_and_click "win_setup_next";
|
||||||
|
|
||||||
# Select the custom installation
|
# Select the custom installation
|
||||||
assert_and_click "win_setup_custom_install", 30;
|
assert_and_click "win_setup_custom_install";
|
||||||
|
|
||||||
# The drive 0 will always be empty, so just click Next to continue
|
# The drive 0 will always be empty, so just click Next to continue
|
||||||
assert_and_click "win_setup_next", 60;
|
assert_and_click "win_setup_next", '', 60;
|
||||||
|
|
||||||
# Confirm the region, the default US region will be ok.
|
# Confirm the region, the default US region will be ok.
|
||||||
assert_and_click "win_setup_yes", 300;
|
assert_and_click "win_setup_yes", '', 600;
|
||||||
|
|
||||||
# Confirm the keyboard layout, the default US keyboard will be ok.
|
# Confirm the keyboard layout, the default US keyboard will be ok.
|
||||||
assert_and_click "win_setup_yes", 60;
|
assert_and_click "win_setup_yes";
|
||||||
|
|
||||||
# Skip adding the second keyboard, we are not interested anyway.
|
# Skip adding the second keyboard, we are not interested anyway.
|
||||||
assert_and_click "win_setup_skip", 60;
|
assert_and_click "win_setup_skip";
|
||||||
|
|
||||||
# If no internet is detected, deal with no internet.
|
# If no internet is detected, deal with no internet.
|
||||||
|
|
||||||
# Join a local domain
|
# Join a local domain
|
||||||
assert_and_click "win_setup_local_account", 600;
|
assert_and_click "win_setup_local_account", '', 600;
|
||||||
assert_and_click "win_setup_bluenext", 20;
|
assert_and_click "win_setup_bluenext";
|
||||||
|
|
||||||
# Fill-in the account name
|
# Fill-in the account name
|
||||||
type_very_safely "Fedora";
|
type_very_safely "Fedora";
|
||||||
assert_and_click "win_setup_bluenext", 20;
|
assert_and_click "win_setup_bluenext";
|
||||||
|
|
||||||
# Fill-in the password
|
# Fill-in the password
|
||||||
type_very_safely "weakpassword";
|
type_very_safely "weakpassword";
|
||||||
assert_and_click "win_setup_bluenext", 20;
|
assert_and_click "win_setup_bluenext";
|
||||||
|
|
||||||
# Confirm the password
|
# Confirm the password
|
||||||
type_very_safely "weakpassword";
|
type_very_safely "weakpassword";
|
||||||
assert_and_click "win_setup_bluenext", 20;
|
assert_and_click "win_setup_bluenext";
|
||||||
|
|
||||||
# Deal with security questions
|
# Deal with security questions
|
||||||
# What was your first pet's name?
|
# What was your first pet's name?
|
||||||
assert_and_click "win_setup_security_question", 30;
|
assert_and_click "win_setup_security_question";
|
||||||
assert_and_click "win_setup_your_pet", 30;
|
assert_and_click "win_setup_your_pet";
|
||||||
sleep 1;
|
sleep 1;
|
||||||
send_key "tab";
|
send_key "tab";
|
||||||
sleep 1;
|
sleep 1;
|
||||||
type_very_safely "Bob";
|
type_very_safely "Bob";
|
||||||
assert_and_click "win_setup_bluenext", 30;
|
assert_and_click "win_setup_bluenext";
|
||||||
|
|
||||||
# What was your childhood nickname?
|
# What was your childhood nickname?
|
||||||
assert_and_click "win_setup_security_question", 30;
|
assert_and_click "win_setup_security_question";
|
||||||
assert_and_click "win_setup_childhood_nickname", 30;
|
assert_and_click "win_setup_childhood_nickname";
|
||||||
sleep 1;
|
sleep 1;
|
||||||
send_key "tab";
|
send_key "tab";
|
||||||
sleep 1;
|
sleep 1;
|
||||||
type_very_safely "Bob";
|
type_very_safely "Bob";
|
||||||
assert_and_click "win_setup_bluenext", 30;
|
assert_and_click "win_setup_bluenext";
|
||||||
|
|
||||||
# What was the name of your oldest cousin?
|
# What was the name of your oldest cousin?
|
||||||
assert_and_click "win_setup_security_question", 30;
|
assert_and_click "win_setup_security_question";
|
||||||
assert_and_click "win_setup_oldest_cousin", 30;
|
assert_and_click "win_setup_oldest_cousin";
|
||||||
sleep 1;
|
sleep 1;
|
||||||
send_key "tab";
|
send_key "tab";
|
||||||
sleep 1;
|
sleep 1;
|
||||||
type_very_safely "Bob";
|
type_very_safely "Bob";
|
||||||
assert_and_click "win_setup_bluenext", 30;
|
assert_and_click "win_setup_bluenext";
|
||||||
|
|
||||||
# Refuse the activity history.
|
# Refuse the activity history.
|
||||||
assert_and_click "win_setup_blueno", 30;
|
assert_and_click "win_setup_blueno";
|
||||||
|
|
||||||
# Refuse digital assistant
|
# Refuse digital assistant
|
||||||
assert_and_click "win_setup_decline", 30;
|
assert_and_click "win_setup_decline";
|
||||||
|
|
||||||
# Accept suggested values (bad but fast and easy)
|
# Accept suggested values (bad but fast and easy)
|
||||||
assert_and_click "win_setup_accept", 30;
|
assert_and_click "win_setup_accept";
|
||||||
|
|
||||||
# Check if booted
|
# Check if booted
|
||||||
assert_screen "win_setup_booted_logged", 600;
|
assert_screen "win_setup_booted_logged", '', 600;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user