os-autoinst-distri-fedora/tests/applications/okular/presentation.pm

40 lines
961 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# This part of the suite tests that Evince can be switched into night mode.
sub run {
my $self = shift;
# Switch on Presentation mode.
send_key("ctrl-shift-p");
wait_still_screen(2);
# A dialogue should be shown, assert and dismiss.
assert_screen("okular_presentation_dialogue");
assert_and_click("okular_presentation_ok");
# Make sure that we are on the first page.
send_key("home");
# Each time, we move to a different page, a special
# navigation mark will be shown for a couple of seconds,
# so we check for it.
send_key("right"); # to move to a different page
assert_screen("okular_navi_page_one");
# Move to another page to see if presentation mode
# works correctly.
send_key("left"); # to move to a second page
assert_screen("okular_navi_page_two");
}
sub test_flags {
return {always_rollback => 1};
}
1;