mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-07-17 19:01:34 +00:00
This fix dismisess the first time warning in LibreOffice, but we only apply it to LCalc test because they run for the first time.
31 lines
613 B
Perl
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:
|