1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-07-17 19:01:34 +00:00
os-autoinst-distri-fedora/tests/apps_startstop/kde/lcalc.pm
Lukáš Růžička d232a19bb7 Get rid of the Libre Office First Time warning.
This fix dismisess the first time warning in LibreOffice,
but we only apply it to LCalc test because they run
for the first time.
2025-07-04 17:21:35 +02:00

31 lines
613 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# This test checks that LibreOffice Calc starts.
sub run {
my $self = shift;
# Start the application
menu_launch_type 'libreoffice calc';
# Check for the First Use warning and dismiss it,
# before you try to quit the application.
if (check_screen("lcalc_warning_firsttime", timeout => 15)) {
send_key("alt-f4");
}
# Check that it is started
assert_screen 'apps_run_lcalc', timeout => 60;
# Close the application
quit_with_shortcut();
}
sub test_flags {
return {};
}
1;
# vim: set sw=4 et: