2023-08-28 09:27:11 +00:00
|
|
|
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);
|
2024-05-31 11:13:31 +00:00
|
|
|
menu_launch_type("text editor", "maximize");
|
|
|
|
assert_screen("apps_run_texteditor");
|
|
|
|
menu_launch_type("files", "maximize");
|
|
|
|
assert_screen("apps_run_files");
|
2023-08-28 09:27:11 +00:00
|
|
|
|
|
|
|
# If we are at Nautilus switch to editor
|
|
|
|
if (check_screen("apps_run_files")) {
|
|
|
|
send_key("alt-tab");
|
2024-05-31 11:13:31 +00:00
|
|
|
assert_screen "apps_run_texteditor";
|
2023-08-28 09:27:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# 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("~");
|
2024-05-31 11:13:31 +00:00
|
|
|
# Sometimes, the details take a time to load,
|
|
|
|
# if that happens, fail softly.
|
|
|
|
unless (check_screen('navigation_details_shown', timeout => 30)) {
|
|
|
|
if (check_screen('navigation_details_notloaded')) {
|
|
|
|
record_soft_failure('Window details not loaded in time.');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
assert_screen("navigation_details_shown", timeout => 60);
|
|
|
|
}
|
2023-08-28 09:27:11 +00:00
|
|
|
release_key("alt");
|
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
|
|
|
return {always_rollback => 1};
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|
|
|
|
|
|
|
|
|
|
|
|
|