1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-01-10 11:03:08 +00:00
os-autoinst-distri-fedora/tests/applications/system-settings/multitask.pm

56 lines
1.3 KiB
Perl
Raw Normal View History

2022-03-07 14:51:33 +00:00
use base "installedtest";
use strict;
use testapi;
use utils;
# This is to check up the Multitasking tab.
sub run {
my $self = shift;
assert_and_click("settings_menu_multitasking");
# Set workspace to a fixed number
assert_and_click("settings_multitask_fixed_workspaces");
2022-03-07 15:46:08 +00:00
# Also we will leave the settings that when switching
# applications, all apps will be included.
2022-03-07 14:51:33 +00:00
2022-03-07 15:46:08 +00:00
# Check that the number of workspace is fixed to 4.
2022-03-07 14:51:33 +00:00
send_key("super");
assert_screen("settings_multitask_workspaces_count");
2022-03-07 15:46:08 +00:00
# Now start an application on Workspace 1.
2022-03-07 14:51:33 +00:00
type_safely("clocks");
send_key("ret");
2022-03-07 15:17:36 +00:00
wait_still_screen(2);
2022-03-07 14:51:33 +00:00
assert_screen("apps_run_clocks");
2022-03-07 15:46:08 +00:00
# Switch to another workspace and start another app there.
2022-03-07 14:51:33 +00:00
send_key("ctrl-alt-right");
2022-03-07 15:17:36 +00:00
wait_still_screen(2);
2022-03-07 14:51:33 +00:00
send_key("super");
wait_still_screen(2);
type_safely("terminal");
send_key("ret");
2022-03-07 15:17:36 +00:00
wait_still_screen(2);
2022-03-07 14:51:33 +00:00
assert_screen("apps_run_terminal");
2022-03-07 15:46:08 +00:00
# Now check that all apps are included when we try to
# switch among them.
2022-03-07 14:55:52 +00:00
hold_key("alt");
send_key("tab");
assert_screen("settings_multitask_apps_to_switch");
2022-03-07 15:27:48 +00:00
release_key("alt");
2022-03-07 14:51:33 +00:00
}
sub test_flags {
return {fatal => 1, always_rollback => 1};
}
1;
# vim: set sw=4 et: