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"); } # 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: