1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-05 03:23:09 +00:00
os-autoinst-distri-fedora/tests/applications/system-settings/multitask.pm
2022-03-07 16:46:08 +01:00

56 lines
1.3 KiB
Perl

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");
# Also we will leave the settings that when switching
# applications, all apps will be included.
# Check that the number of workspace is fixed to 4.
send_key("super");
assert_screen("settings_multitask_workspaces_count");
# Now start an application on Workspace 1.
type_safely("clocks");
send_key("ret");
wait_still_screen(2);
assert_screen("apps_run_clocks");
# Switch to another workspace and start another app there.
send_key("ctrl-alt-right");
wait_still_screen(2);
send_key("super");
wait_still_screen(2);
type_safely("terminal");
send_key("ret");
wait_still_screen(2);
assert_screen("apps_run_terminal");
# Now check that all apps are included when we try to
# switch among them.
hold_key("alt");
send_key("tab");
assert_screen("settings_multitask_apps_to_switch");
release_key("alt");
}
sub test_flags {
return {fatal => 1, always_rollback => 1};
}
1;
# vim: set sw=4 et: