mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-07-19 11:51:34 +00:00
We have enhanced the menu_launch_type to allow for start checking and maximizing applications. This PR uses the new functions wherever it seems logical. If special logic was used for certain cases, we have not touched these to preserve the exact behaviour. The crash workaround for the Fonts flatpak is dropped because it no longer seems to be needed with the latest version of the flatpak, and dropping it simplifies this migration. Fixes: https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/358
40 lines
821 B
Perl
40 lines
821 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
# This test checks that Videos starts.
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
my $subvariant = get_var("SUBVARIANT", "Workstation");
|
|
my $version = get_var("VERSION");
|
|
|
|
if ($subvariant ne "Silverblue") {
|
|
# Start the application
|
|
start_with_launcher('apps_menu_video');
|
|
# Check that is started
|
|
assert_screen 'apps_run_video';
|
|
# Register application
|
|
if ($version eq "Rawhide") {
|
|
register_application("showtime");
|
|
}
|
|
else {
|
|
register_application("totem");
|
|
}
|
|
# Close the application
|
|
quit_with_shortcut();
|
|
}
|
|
else {
|
|
diag("Videos not installed, skipping the test.");
|
|
}
|
|
}
|
|
|
|
sub test_flags {
|
|
return {};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|