os-autoinst-distri-fedora/tests/applications/gwenview/fullscreen.pm

29 lines
494 B
Perl
Raw Normal View History

2024-04-03 10:45:09 +00:00
use base "installedtest";
use strict;
use testapi;
use utils;
# This part tests if the application can be switched to full screen.
sub run {
my $self = shift;
# Toggle full screen
2024-04-03 12:07:13 +00:00
send_key("ctrl-shift-f");
2024-04-03 10:45:09 +00:00
wait_still_screen 2;
2024-04-03 12:07:13 +00:00
assert_screen("gwen_fullscreen_on");
2024-04-03 10:45:09 +00:00
# Return to normal mode
2024-04-03 12:07:13 +00:00
send_key("ctrl-shift-f");
2024-04-03 10:45:09 +00:00
wait_still_screen 2;
2024-04-03 12:07:13 +00:00
assert_screen("gwen_image_default");
2024-04-03 10:45:09 +00:00
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: