2021-05-03 15:37:46 +00:00
|
|
|
use base "anacondatest";
|
|
|
|
use strict;
|
|
|
|
use lockapi;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
use anaconda;
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
# This test tests that Anaconda is able to show help for particular Anaconda screens.
|
|
|
|
# It opens various Anaconda panes, clicks on Help button, and checks that correct
|
|
|
|
# Help content is shown for that pane.
|
|
|
|
#
|
|
|
|
# Although this test performs Anaconda routines and it only partly performs the installation,
|
|
|
|
# therefore it is NOT to be considered an *installation test*.
|
|
|
|
#
|
|
|
|
# This tests should run after the _boot_to_anaconda test. Which should take us to Anaconda
|
|
|
|
# main hub.
|
|
|
|
# Now, we should be on Anaconda Main hub, but the hub differs for various
|
|
|
|
# installation media. For each such media (ServerDVD, WS Live, KDE Live),
|
|
|
|
# we create a tailored test plan.
|
|
|
|
|
|
|
|
# Create test plans
|
|
|
|
my @testplan;
|
|
|
|
# For LIVE KDE:
|
|
|
|
if ((get_var('LIVE')) && (get_var('DESKTOP') eq "kde")) {
|
2022-02-18 22:59:17 +00:00
|
|
|
@testplan = qw/keyboard_layout time_date install_destination network_host_name root_password user_creation/;
|
2021-05-03 15:37:46 +00:00
|
|
|
}
|
|
|
|
# For LIVE Workstation
|
|
|
|
elsif ((get_var('LIVE')) && (get_var('DESKTOP') eq "gnome")) {
|
2023-08-25 21:48:42 +00:00
|
|
|
my $relnum = get_release_number;
|
|
|
|
# the webUI installer from F39+ does not really have Help in
|
|
|
|
# a traditional sense, it's planned to have contextual help
|
|
|
|
# in future which we may be able to test, but for now just
|
|
|
|
# skip it
|
2023-09-12 23:13:49 +00:00
|
|
|
if ($relnum > 39) {
|
2023-08-25 21:51:35 +00:00
|
|
|
record_soft_failure "no Help in anaconda webUI currently!";
|
2023-08-25 21:48:42 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-05-31 22:03:17 +00:00
|
|
|
@testplan = qw/keyboard_layout install_destination time_date/;
|
2021-05-03 15:37:46 +00:00
|
|
|
}
|
|
|
|
# For Silverblue
|
|
|
|
elsif (get_var('DESKTOP') eq "gnome") {
|
2021-05-31 22:03:17 +00:00
|
|
|
@testplan = qw/keyboard_layout language_support install_destination time_date/;
|
2021-05-03 15:37:46 +00:00
|
|
|
}
|
|
|
|
# For ServerDVD
|
|
|
|
else {
|
2022-02-18 22:59:17 +00:00
|
|
|
@testplan = qw/keyboard_layout language_support time_date installation_source select_packages install_destination network_host_name root_password user_creation/;
|
2021-05-03 15:37:46 +00:00
|
|
|
}
|
|
|
|
|
2023-08-25 21:55:20 +00:00
|
|
|
# At first, we check for the main hub help.
|
|
|
|
check_help_on_pane("main");
|
|
|
|
|
2021-05-03 15:37:46 +00:00
|
|
|
# Iterate over test plan and do the tests.
|
|
|
|
foreach (@testplan) {
|
2021-05-31 22:03:17 +00:00
|
|
|
check_help_on_pane($_);
|
2021-05-03 15:37:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Now, we will start the installation.
|
2021-05-31 22:22:43 +00:00
|
|
|
# on GNOME installs (Workstation Live and Silverblue) we don't
|
|
|
|
# need to set a root password or create a user; on other flavors
|
|
|
|
# we must
|
2022-07-28 20:32:57 +00:00
|
|
|
unless (get_var("DESKTOP") eq "gnome") {
|
2021-09-15 23:26:05 +00:00
|
|
|
assert_and_click "anaconda_install_root_password";
|
2022-12-13 19:57:00 +00:00
|
|
|
# we have to click 'enable root account' before typing the
|
|
|
|
# password
|
2021-09-02 18:04:17 +00:00
|
|
|
assert_and_click "anaconda_install_root_password_screen";
|
2022-08-05 18:28:24 +00:00
|
|
|
type_safely "weakadminpassword";
|
2021-05-31 22:03:17 +00:00
|
|
|
send_key "tab";
|
2022-08-05 18:28:24 +00:00
|
|
|
type_safely "weakadminpassword";
|
2021-08-10 16:00:41 +00:00
|
|
|
assert_and_click "anaconda_spoke_done";
|
2021-05-03 15:37:46 +00:00
|
|
|
}
|
2021-05-31 22:03:17 +00:00
|
|
|
# Begin installation after waiting out animation
|
2021-08-10 16:00:41 +00:00
|
|
|
assert_screen "anaconda_main_hub_begin_installation", 90;
|
2021-05-31 22:03:17 +00:00
|
|
|
wait_still_screen 5;
|
2021-08-10 18:56:56 +00:00
|
|
|
assert_and_click "anaconda_main_hub_begin_installation";
|
2021-05-03 15:37:46 +00:00
|
|
|
|
2021-10-15 11:37:40 +00:00
|
|
|
# Check the last Help screen but wait for some time for the test to settle down.
|
|
|
|
sleep 10;
|
2021-05-03 15:37:46 +00:00
|
|
|
check_help_on_pane("installation_progress");
|
|
|
|
|
|
|
|
# As there is no need to proceed with the installation,
|
|
|
|
# the test ends here and the VM will be destroyed
|
|
|
|
# after some short time.
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|