Add needles and code to complete anaconda_help test suite #76

Merged
tcooper merged 4 commits from issue_8 into develop 2022-02-04 00:25:03 +00:00
2 changed files with 28 additions and 2 deletions
Showing only changes of commit 6c7b4f91de - Show all commits

View File

@ -411,6 +411,19 @@ sub check_help_on_pane {
} }
# Otherwise, only check the relevant screen. # Otherwise, only check the relevant screen.
else { else {
# Rocky help has a level of indirection here. Need to click a link first...
if ((get_var('DISTRI') eq "rocky"))
{
if ($screen eq "keyboard_layout" || $screen eq "language_support" || $screen eq "time_date")
{
assert_and_click "anaconda_help_localization_link";
# Specifically for language_support and time_date press page-down
if ($screen eq "language_support" || $screen eq "time_date")
{
send_key "spc";
}
}
}
assert_screen "anaconda_help_$screen"; assert_screen "anaconda_help_$screen";
} }
# Close Help window # Close Help window

View File

@ -24,8 +24,14 @@ sub run {
# Create test plans # Create test plans
my @testplan; my @testplan;
# For Rocky ISO
if ((get_var('DISTRI') eq "Rocky")) {
@testplan = qw/keyboard_layout language_support time_date installation_source select_packages install_destination network_host_name root_password create_user/;
}
# While technically we don't need any of these Fedora test plans it's worth
# leaving them here for now as examples.
# For LIVE KDE: # For LIVE KDE:
if ((get_var('LIVE')) && (get_var('DESKTOP') eq "kde")) { elsif ((get_var('LIVE')) && (get_var('DESKTOP') eq "kde")) {
@testplan = qw/keyboard_layout time_date install_destination network_host_name root_password create_user/; @testplan = qw/keyboard_layout time_date install_destination network_host_name root_password create_user/;
} }
# For LIVE Workstation # For LIVE Workstation
@ -51,6 +57,11 @@ sub run {
# need to set a root password or create a user; on other flavors # need to set a root password or create a user; on other flavors
# we must # we must
unless (get_var("DESKTOP") eq "gnome" ) { unless (get_var("DESKTOP") eq "gnome" ) {
# In Rocky ISO you will finish testplan on Create User and need to shift-tab to select
# Root password
if ((get_var("DISTRI") eq "rocky" )) {
send_key_until_needlematch("anaconda_main_hub_root_password", "shift-tab");
}
assert_and_click "anaconda_main_hub_root_password"; assert_and_click "anaconda_main_hub_root_password";
type_safely "weakrootpassword"; type_safely "weakrootpassword";
send_key "tab"; send_key "tab";
@ -62,7 +73,9 @@ sub run {
wait_screen_change { assert_and_click "anaconda_main_hub_begin_installation"; }; wait_screen_change { assert_and_click "anaconda_main_hub_begin_installation"; };
# Check the last Help screen # Check the last Help screen
unless (get_var("DISTRI") eq "rocky") {
check_help_on_pane("installation_progress"); check_help_on_pane("installation_progress");
}
# As there is no need to proceed with the installation, # As there is no need to proceed with the installation,
# the test ends here and the VM will be destroyed # the test ends here and the VM will be destroyed