mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-11 01:24:20 +00:00
b0bc18b187
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.
41 lines
863 B
Perl
41 lines
863 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
# This will test that user can trigger a detailed view of the
|
|
# navigation icons using the ~ key.
|
|
|
|
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);
|
|
|
|
# If we are at Nautilus switch to editor
|
|
if (check_screen("apps_run_files")) {
|
|
send_key("alt-tab");
|
|
assert_screen "apps_run_editor";
|
|
}
|
|
|
|
# Use alt-tab to navigate to the other
|
|
# application, but trigger the overview
|
|
# page as well and make sure it is shown.
|
|
hold_key("alt");
|
|
send_key("tab");
|
|
send_key("~");
|
|
assert_screen("navigation_details_shown");
|
|
release_key("alt");
|
|
}
|
|
|
|
sub test_flags {
|
|
return {always_rollback => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|
|
|
|
|
|
|