mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-02-15 12:04:31 +00:00
Add multitask.
This commit is contained in:
parent
acce9b9088
commit
24ff6adf44
53
tests/applications/system-settings/multitask.pm
Normal file
53
tests/applications/system-settings/multitask.pm
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
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:
|
Loading…
Reference in New Issue
Block a user