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:
parent
0ba315d5c8
commit
d232a19bb7
16
needles/kde/apps/lcalc_warning_firsttime.json
Normal file
16
needles/kde/apps/lcalc_warning_firsttime.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"lcalc_warning_firsttime"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 198,
|
||||
"ypos": 255,
|
||||
"width": 277,
|
||||
"height": 29,
|
||||
"type": "match",
|
||||
"match": "90"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/kde/apps/lcalc_warning_firsttime.png
Normal file
BIN
needles/kde/apps/lcalc_warning_firsttime.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 264 KiB |
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user