2021-07-14 16:04:16 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
|
|
|
|
# This part of the suite tests that Evince displays shortcuts.
|
|
|
|
|
|
|
|
sub run {
|
2022-07-28 20:32:57 +00:00
|
|
|
my $self = shift;
|
2021-07-14 16:04:16 +00:00
|
|
|
|
2022-07-28 20:32:57 +00:00
|
|
|
# Open the menu
|
|
|
|
assert_and_click("gnome_burger_menu", button => "left", timeout => 30);
|
|
|
|
wait_still_screen 2;
|
2021-07-14 16:04:16 +00:00
|
|
|
|
2022-07-28 20:32:57 +00:00
|
|
|
# Select the Keyboard Shortcuts item
|
|
|
|
assert_and_click("evince_menu_shortcuts", button => "left", timeout => 30);
|
|
|
|
wait_still_screen 2;
|
2021-07-14 16:04:16 +00:00
|
|
|
|
2022-07-28 20:32:57 +00:00
|
|
|
# Check that Shortcuts has been shown
|
|
|
|
assert_screen("evince_shortcuts_shown");
|
2021-07-14 16:04:16 +00:00
|
|
|
|
2022-07-28 20:32:57 +00:00
|
|
|
# Click on number 2 to arrive to the second page
|
|
|
|
assert_and_click("evince_shortcuts_second", button => "left", timeout => 30);
|
2021-07-14 16:04:16 +00:00
|
|
|
|
2022-07-28 20:32:57 +00:00
|
|
|
# Check that Shortcuts 2 has been shown
|
|
|
|
assert_screen("evince_shortcuts_second_shown");
|
2021-07-14 16:04:16 +00:00
|
|
|
|
2022-07-28 20:32:57 +00:00
|
|
|
# Click on number 3 to arrive to the second page
|
|
|
|
assert_and_click("evince_shortcuts_third", button => "left", timeout => 30);
|
2021-07-14 16:04:16 +00:00
|
|
|
|
2022-07-28 20:32:57 +00:00
|
|
|
# Check that Shortcuts 3 has been shown
|
|
|
|
assert_screen("evince_shortcuts_third_shown");
|
2021-07-14 16:04:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2022-07-28 20:32:57 +00:00
|
|
|
return {always_rollback => 1};
|
2021-07-14 16:04:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|