mods for ananonda_help test suite
- support Rocky help content in anaconda.pm
This commit is contained in:
parent
e4c7f48ff1
commit
6c7b4f91de
@ -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
|
||||||
|
@ -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
|
||||||
check_help_on_pane("installation_progress");
|
unless (get_var("DISTRI") eq "rocky") {
|
||||||
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user