From 24ff6adf44cc012343e1fb09709758f93eee7901 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Mon, 7 Mar 2022 15:51:33 +0100 Subject: [PATCH] Add multitask. --- .../applications/system-settings/multitask.pm | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 tests/applications/system-settings/multitask.pm diff --git a/tests/applications/system-settings/multitask.pm b/tests/applications/system-settings/multitask.pm new file mode 100644 index 00000000..cda77869 --- /dev/null +++ b/tests/applications/system-settings/multitask.pm @@ -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: