os-autoinst-distri-fedora/tests/applications/fonts/aaa_setup.pm

38 lines
995 B
Perl
Raw Normal View History

2023-01-24 12:48:52 +00:00
use base "installedtest";
use strict;
use testapi;
use utils;
# This script will start Fonts and save a milestone for the
# subsequent tests.
sub run {
my $self = shift;
# set the update notification timestamp
set_update_notification_timestamp();
2023-01-24 12:48:52 +00:00
# Start the application
menu_launch_type("fonts");
2024-02-22 14:31:14 +00:00
# BUG https://gitlab.gnome.org/GNOME/gnome-font-viewer/-/issues/78
# Flatpakked Fonts (version 45.0) starts and crashes for the first time,
# therefore on Silverblue, let's check first and
# if it crashes, try to run the application again before dying.
# Check that the application is running on Silverblue
if (get_var("SUBVARIANT" eq "Silverblue") && ! (check_screen('apps_run_fonts', timeout => 30))) {
menu_launch_type("fonts");
}
2023-01-24 12:48:52 +00:00
assert_screen 'apps_run_fonts';
# Fullsize the window.
send_key("super-up");
wait_still_screen(2);
}
sub test_flags {
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et: