diff --git a/needles/gnome/apps/fonts/fonts_liberation_font_found-20240223.json b/needles/gnome/apps/fonts/fonts_liberation_font_found-20240223.json new file mode 100644 index 00000000..e0524780 --- /dev/null +++ b/needles/gnome/apps/fonts/fonts_liberation_font_found-20240223.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "height": 162, + "type": "match", + "xpos": 236, + "ypos": 165, + "width": 159 + } + ], + "properties": [], + "tags": [ + "fonts_liberation_font_found" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/fonts/fonts_liberation_font_found-20240223.png b/needles/gnome/apps/fonts/fonts_liberation_font_found-20240223.png new file mode 100644 index 00000000..8b3532f6 Binary files /dev/null and b/needles/gnome/apps/fonts/fonts_liberation_font_found-20240223.png differ diff --git a/tests/applications/fonts/aaa_setup.pm b/tests/applications/fonts/aaa_setup.pm index 28478495..e0d4c081 100644 --- a/tests/applications/fonts/aaa_setup.pm +++ b/tests/applications/fonts/aaa_setup.pm @@ -11,10 +11,25 @@ sub run { # set the update notification timestamp set_update_notification_timestamp(); - # Start the application - menu_launch_type("fonts"); + my $crash = 1; + + # Workaround on Silverblue + # https://gitlab.gnome.org/GNOME/gnome-font-viewer/-/issues/78 + if (get_var("SUBVARIANT") eq "Silverblue") { + # Open the command line + send_key("alt-f2"); + sleep(2); + # Start the application with a command and let it crash + type_very_safely("flatpak run org.gnome.font-viewer\n"); + # In case it does not crash, remember it. + if (check_screen("apps_run_fonts", timeout => 30)) { + $crash = 0; + } + } + # Start the application, unless already running. + menu_launch_type("fonts") if ($crash == 1); # Check that is started - assert_screen 'apps_run_fonts'; + assert_screen('apps_run_fonts', timeout => 60); # Fullsize the window. send_key("super-up");