1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-11 05:43:11 +00:00
os-autoinst-distri-fedora/tests/applications/software/install_flatpak.pm

47 lines
1.2 KiB
Perl
Raw Normal View History

use base "installedtest";
use strict;
use testapi;
use utils;
use desktoptools;
# This script tests if Software can install applications from Flatpaks.
sub run {
my $self = shift;
# Sometimes, Software crashes after the VM has been rolled back.
# If so, restart the application.
unless (check_screen("apps_run_software")) {
restart_application("software");
}
2023-03-22 09:37:36 +00:00
# Find the application
find_application("inkscape");
# Install the application using Flatpak
install_application("inkscape", "flatpak");
# Check that it has been installed using the GUI tools.
check_app_installed("inkscape");
# Start the application using the Software to confirm
# it can be opened directly.
start_application_via_packagemanager("inkscape");
# Although the GUI tells us that the installation was successful,
# we should also check in the background, so we move to the CLI
# and perform an easy check there.
$self->root_console(tty => 3);
assert_script_run("flatpak list | grep Inkscape");
}
sub test_flags {
# When finished, rollback to the milestone.
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: