diff --git a/needles/kde/apps/lcalc_warning_firsttime.json b/needles/kde/apps/lcalc_warning_firsttime.json new file mode 100644 index 00000000..d2a0f613 --- /dev/null +++ b/needles/kde/apps/lcalc_warning_firsttime.json @@ -0,0 +1,16 @@ +{ + "properties": [], + "tags": [ + "lcalc_warning_firsttime" + ], + "area": [ + { + "xpos": 198, + "ypos": 255, + "width": 277, + "height": 29, + "type": "match", + "match": "90" + } + ] +} \ No newline at end of file diff --git a/needles/kde/apps/lcalc_warning_firsttime.png b/needles/kde/apps/lcalc_warning_firsttime.png new file mode 100644 index 00000000..e4de2579 Binary files /dev/null and b/needles/kde/apps/lcalc_warning_firsttime.png differ diff --git a/tests/apps_startstop/gnome/lcalc.pm b/tests/apps_startstop/gnome/lcalc.pm index 8adb05c7..ea018bd7 100644 --- a/tests/apps_startstop/gnome/lcalc.pm +++ b/tests/apps_startstop/gnome/lcalc.pm @@ -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 diff --git a/tests/apps_startstop/kde/lcalc.pm b/tests/apps_startstop/kde/lcalc.pm index 28f4e1f9..ded20be6 100644 --- a/tests/apps_startstop/kde/lcalc.pm +++ b/tests/apps_startstop/kde/lcalc.pm @@ -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