1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-02 02:03:07 +00:00
os-autoinst-distri-fedora/tests/applications/gwenview/aaa_setup.pm

51 lines
1.2 KiB
Perl
Raw Normal View History

2024-04-03 10:45:09 +00:00
use base "installedtest";
use strict;
use testapi;
use utils;
2024-04-03 10:50:26 +00:00
# This script will download the test data for Gwenview, start the application,
# and set a milestone as a starting point for the other Gwenview tests.
2024-04-03 10:45:09 +00:00
sub run {
my $self = shift;
# Switch to console
$self->root_console(tty => 3);
# Perform git test
check_and_install_git();
# Download the test data
download_testdata();
# Exit the terminal
desktop_vt;
# Start the application
2024-04-03 10:50:26 +00:00
menu_launch_type("gwenview");
2024-04-03 10:45:09 +00:00
# Check that is started
2024-04-03 10:50:26 +00:00
assert_screen 'imageviewer_runs';
2024-04-03 10:45:09 +00:00
2024-04-03 10:50:26 +00:00
# Fullsize the application window.
send_key("super-pgup");
2024-04-03 10:45:09 +00:00
2024-04-03 10:50:26 +00:00
# Open the test file to create a starting point for the other tests.
2024-04-03 10:45:09 +00:00
send_key("ctrl-o");
# Open the Pictures folder.
2024-04-03 10:50:26 +00:00
assert_and_click("gwen_pictures_directory", button => "left", timeout => 30);
2024-04-03 10:45:09 +00:00
# Select the image.jpg file.
2024-04-03 10:50:26 +00:00
assert_and_click("gwen_file_select_jpg", button => "left", timeout => 30);
2024-04-03 10:45:09 +00:00
# Hit enter to open it.
send_key("ret");
# Check that the file has been successfully opened.
2024-04-03 10:50:26 +00:00
assert_screen("gwen_image_default");
2024-04-03 10:45:09 +00:00
}
sub test_flags {
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et: