1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43:08 +00:00
os-autoinst-distri-fedora/tests/i3_tilling.pm
Lukas Ruzicka 092cc5dd05 Move the content from i3 library to the files.
Over the time, we have changed the test scripts so that the code
in the i3.pm library was no more needed. The only leftover was the
user config subroutine that could be moved to the only file that was
using it and we could get rid of the library file.
2024-09-26 16:06:43 -07:00

48 lines
1.2 KiB
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
my $password = get_var('USER_PASSWORD', 'weakpassword');
# launch a terminal first
send_key("alt-ret");
assert_screen("apps_run_terminal");
# start blivet_gui, mousepad and check that they are split on the screen
x11_start_program("blivet-gui");
wait_still_screen(2);
type_very_safely("$password\n");
assert_screen('apps_run_blivetgui');
x11_start_program("mousepad");
assert_screen('apps_run_mousepad');
assert_screen("i3_windows_split");
# switch to tabbed layout
send_key("alt-w");
assert_screen("i3_windows_tabbed");
send_key_until_needlematch("apps_run_terminal", "alt-j");
wait_still_screen(2);
send_key("alt-;");
assert_screen("blivet_gui_application");
send_key("alt-;");
assert_screen("mousepad_no_document_open");
# switch to stacked layout
send_key("alt-s");
assert_screen("i3_windows_stacked");
send_key_until_needlematch("apps_run_terminal", "alt-k");
send_key("alt-l");
assert_screen("mousepad_no_document_open");
send_key("alt-l");
assert_screen("blivet_gui_application");
}
1;