1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-24 23:03:08 +00:00
os-autoinst-distri-fedora/tests/applications/navigation/aaa_setup.pm
Lukas Ruzicka b0bc18b187 Add a 'navigation' test for GNOME.
This PR partly solves the issue #301 when it adds the navigation
testing for Gnome. It uses the keyboard combinations to cycle through
running applications and checks that applications could be switched
accordingly. It also tests that you can switch between workspaces
and that you can move an applications to another workspace.
2024-04-10 21:46:43 +00:00

39 lines
865 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# We will start two applications and save the progress.
sub run {
my $self = shift;
# Let us wait here for a couple of seconds to give the VM time to settle.
# Starting right over might result in erroneous behavior.
sleep(5);
# Start Firefox
menu_launch_type("nautilus");
assert_screen "apps_run_files", 45;
# let it settle a bit
wait_still_screen(stilltime => 5, similarity_level => 45);
send_key("super-up");
assert_screen("navigation_files_fullscreen");
# Start Gnome Text Editor
menu_launch_type("text-editor");
assert_screen("apps_run_editor");
wait_still_screen(2);
send_key("super-up");
assert_screen("navigation_editor_fullscreen");
}
sub test_flags {
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et: