1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-09-27 16:38:50 +00:00
os-autoinst-distri-fedora/tests/applications/navigation/full_screen.pm
Lukáš Růžička 46133ad5a3 Prolong wait time for flscr enabled in terminal
In a virtual machine, it takes a couple of seconds for the
upper panel to go away and show the terminal prompt.
Let's make it wait 60 seconds to be absolutely sure.
2025-09-10 15:25:35 +02:00

54 lines
1.5 KiB
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# This will test that
# - application can be toggled between full screen and normal view
sub run {
my $self = shift;
# Settle in for a while
sleep(5);
# The full screen is not supported by any application, but it
# is supported by several, such as Terminal.
menu_launch_type("terminal", maximize => 1);
# If we see prompt, everything is ok.
assert_screen("terminal_prompt");
# When the application is maximised but not full screen,
# the panel controls should be visible.
assert_screen("panel_controls");
# F11 will trigger the full screen mode, the panel controls
# should no longer be visible, but the page content should
# still be visible.
send_key("f11");
# We still need to see the prompt. However in a virtual machine,
# it sometimes takes some time before the prompt appears. Let's
# wait for it some more time.
assert_screen("terminal_prompt", timeout => 60);
# But we should not see the panels.
if (check_screen("panel_controls")) {
die("It seems that full screen mode has not been triggered correctly.");
}
# Another F11 will trigger that full screen mode off. The panel
# controls will be visible again and the page content, too.
send_key("f11");
assert_screen("terminal_prompt");
assert_screen("panel_controls");
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: