1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-04 19:13:08 +00:00
os-autoinst-distri-fedora/tests/applications/system-settings/multitask.pm
2022-03-07 15:51:33 +01:00

54 lines
1.1 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");
# Limit applications to only belong to a certain workspace.
assert_and_click("settings_multitask_tie_apps");
# Switch off the application
send_key("alt-f4");
# Check that the number of workspace is fix
send_key("super");
assert_screen("settings_multitask_workspaces_count");
# Start Clocks
type_safely("clocks");
send_key("ret");
assert_screen("apps_run_clocks");
# Switch to another workspace and start Terminal there.
send_key("ctrl-alt-right");
sleep 2;
send_key("super");
wait_still_screen(2);
type_safely("terminal");
send_key("ret");
assert_screen("apps_run_terminal");
# Now check you only see the terminal there on Activity page
assert_screen("settings_multitask_app_tied_wspace");
}
sub test_flags {
return {fatal => 1, always_rollback => 1};
}
1;
# vim: set sw=4 et: