mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-14 09:11:26 +00:00
0fa6138448
Summary: The non-English tests so far did not test that graphical login worked as expected, which is a fairly large hole. With this change, they should do a Workstation install and test login to both GNOME and the console works as expected. KDE is not yet tested. As part of this we tweak the implementation of keyboard layout switching in graphical environments to use a generic function in main_common which can handle both anaconda and desktops (just GNOME at present, but should extend easily to any desktop with a known switcher key and a visible layout indicator), replacing the anacondatest class method. I kinda don't like that the test has to specifically tell the function when it's in anaconda, but I don't think I want to start experimenting with a global 'test phase' openQA variable or anything like that at present. Fixes T842. Test Plan: Run the French and Russian install tests and check they work as expected. Also run an English Workstation install if you like, and make sure that didn't break. This change is live on staging ATM, seems to work fine. Reviewers: jskladan, garretraziel Reviewed By: garretraziel Subscribers: tflink Maniphest Tasks: T842 Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D1071
47 lines
1.2 KiB
Perl
47 lines
1.2 KiB
Perl
use base "anacondatest";
|
|
use strict;
|
|
use testapi;
|
|
use main_common;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# Anaconda hub
|
|
# Go to INSTALLATION DESTINATION and ensure one disk is selected.
|
|
$self->select_disks();
|
|
|
|
# check "encrypt data" checkbox
|
|
assert_and_click "anaconda_install_destination_encrypt_data";
|
|
assert_and_click "anaconda_spoke_done";
|
|
|
|
# type password for disk encryption
|
|
wait_idle 5;
|
|
if (get_var("SWITCHED_LAYOUT")) {
|
|
desktop_switch_layout "us", "anaconda";
|
|
}
|
|
type_safely get_var("ENCRYPT_PASSWORD");
|
|
wait_screen_change { send_key "tab"; };
|
|
type_safely get_var("ENCRYPT_PASSWORD");
|
|
if (get_var("SWITCHED_LAYOUT")) {
|
|
# work around RHBZ #1333984
|
|
desktop_switch_layout "native", "anaconda";
|
|
}
|
|
|
|
assert_and_click "anaconda_install_destination_save_passphrase";
|
|
|
|
# Anaconda hub
|
|
assert_screen "anaconda_main_hub", 300; #
|
|
|
|
}
|
|
|
|
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:
|