mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-16 10:11:26 +00:00
212926a078
Summary: I was having a weird failure that I finally figured out: when software source config runs then storage config, the 'begin_ installation' needle can match while the 'slide down from the top' animation is still playing, and by the time os-autoinst positions the cursor to click where the button was when the match happened, it's moved down and we wind up clicking outside the button area. So, wait a sec before clicking to avoid this. Test Plan: Run the server_sata_multi test. Reviewers: jskladan, garretraziel Reviewed By: garretraziel Subscribers: tflink Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D464
61 lines
1.9 KiB
Perl
61 lines
1.9 KiB
Perl
use base "anacondalog";
|
|
use strict;
|
|
use testapi;
|
|
|
|
sub run {
|
|
# Anaconda hub
|
|
assert_screen "anaconda_main_hub", 300; #
|
|
|
|
# Begin installation
|
|
# Sometimes, the 'slide in from the top' animation messes with
|
|
# this - by the time we click the button isn't where it was any
|
|
# more. So wait a sec just in case.
|
|
sleep 1;
|
|
assert_and_click "anaconda_main_hub_begin_installation";
|
|
|
|
# Set root password
|
|
my $root_password = get_var("ROOT_PASSWORD") || "weakpassword";
|
|
assert_and_click "anaconda_install_root_password";
|
|
assert_screen "anaconda_install_root_password_screen";
|
|
type_string $root_password;
|
|
send_key "tab";
|
|
type_string $root_password;
|
|
assert_and_click "anaconda_spoke_done";
|
|
# weak password - click "done" once again"
|
|
#assert_and_click "anaconda_spoke_done";
|
|
|
|
# Set user details
|
|
sleep 1;
|
|
my $user_login = get_var("USER_LOGIN") || "test";
|
|
my $user_password = get_var("USER_PASSWORD") || "weakpassword";
|
|
assert_and_click "anaconda_install_user_creation";
|
|
assert_screen "anaconda_install_user_creation_screen";
|
|
type_string $user_login;
|
|
assert_and_click "anaconda_user_creation_password_input";
|
|
type_string $user_password;
|
|
send_key "tab";
|
|
type_string $user_password;
|
|
assert_and_click "anaconda_install_user_creation_make_admin";
|
|
assert_and_click "anaconda_spoke_done";
|
|
# weak password - click "done" once again"
|
|
#assert_and_click "anaconda_spoke_done";
|
|
|
|
# Wait for install to end
|
|
assert_and_click "anaconda_install_done", '', 1800;
|
|
if (get_var('LIVE')) {
|
|
x11_start_program("reboot");
|
|
}
|
|
}
|
|
|
|
sub test_flags {
|
|
# without anything - rollback to 'lastgood' snapshot if failed
|
|
# 'fatal' - whole test suite is in danger if this fails
|
|
# 'milestone' - after this test succeeds, update 'lastgood'
|
|
# 'important' - if this fails, set the overall state to 'fail'
|
|
return { fatal => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|