2020-10-17 22:22:09 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
use i3;
|
|
|
|
|
|
|
|
|
|
|
|
sub run {
|
2024-06-20 13:39:34 +00:00
|
|
|
my $password = get_var('USER_PASSWORD', 'weakpassword');
|
2020-10-17 22:22:09 +00:00
|
|
|
|
|
|
|
# launch a terminal first
|
2024-06-20 13:39:34 +00:00
|
|
|
send_key("alt-ret");
|
2020-10-17 22:22:09 +00:00
|
|
|
assert_screen("apps_run_terminal");
|
|
|
|
|
2024-06-20 13:39:34 +00:00
|
|
|
# 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');
|
2020-10-17 22:22:09 +00:00
|
|
|
x11_start_program("mousepad");
|
2024-06-20 13:39:34 +00:00
|
|
|
assert_screen('apps_run_mousepad');
|
2020-10-17 22:22:09 +00:00
|
|
|
assert_screen("i3_windows_split");
|
|
|
|
|
|
|
|
# switch to tabbed layout
|
2024-06-20 13:39:34 +00:00
|
|
|
send_key("alt-w");
|
2020-10-17 22:22:09 +00:00
|
|
|
assert_screen("i3_windows_tabbed");
|
2024-06-20 13:39:34 +00:00
|
|
|
send_key_until_needlematch("apps_run_terminal", "alt-j");
|
|
|
|
wait_still_screen(2);
|
2020-10-17 22:22:09 +00:00
|
|
|
|
2024-06-20 13:39:34 +00:00
|
|
|
send_key("alt-;");
|
|
|
|
assert_screen("blivet_gui_application");
|
2020-10-17 22:22:09 +00:00
|
|
|
|
2024-06-20 13:39:34 +00:00
|
|
|
send_key("alt-;");
|
2020-10-17 22:22:09 +00:00
|
|
|
assert_screen("mousepad_no_document_open");
|
|
|
|
|
|
|
|
# switch to stacked layout
|
2024-06-20 13:39:34 +00:00
|
|
|
send_key("alt-s");
|
2020-10-17 22:22:09 +00:00
|
|
|
assert_screen("i3_windows_stacked");
|
|
|
|
|
2024-06-20 13:39:34 +00:00
|
|
|
send_key_until_needlematch("apps_run_terminal", "alt-k");
|
2020-10-17 22:22:09 +00:00
|
|
|
|
2024-06-20 13:39:34 +00:00
|
|
|
send_key("alt-l");
|
2020-10-17 22:22:09 +00:00
|
|
|
assert_screen("mousepad_no_document_open");
|
|
|
|
|
2024-06-20 13:39:34 +00:00
|
|
|
send_key("alt-l");
|
|
|
|
assert_screen("blivet_gui_application");
|
2020-10-17 22:22:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|