1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-07-25 11:45:43 +00:00

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.
This commit is contained in:
Lukáš Růžička 2025-06-23 17:38:49 +02:00
parent 0ba315d5c8
commit d232a19bb7
4 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,16 @@
{
"properties": [],
"tags": [
"lcalc_warning_firsttime"
],
"area": [
{
"xpos": 198,
"ypos": 255,
"width": 277,
"height": 29,
"type": "match",
"match": "90"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

View File

@ -12,6 +12,11 @@ sub run {
if ($subvariant ne "Silverblue") {
# Start the application
start_with_launcher('apps_menu_lcalc');
# 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 is started
assert_screen 'apps_run_lcalc';
# Register application

View File

@ -9,6 +9,11 @@ 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