2021-08-10 11:50:19 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
|
|
|
|
# This script will download the test data for EoG, start the application,
|
|
|
|
# and set a milestone as a starting point for the other Loupe tests.
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
|
|
|
# Switch to console
|
|
|
|
$self->root_console(tty => 3);
|
|
|
|
# Perform git test
|
|
|
|
check_and_install_git();
|
|
|
|
# Download the test data
|
2023-11-27 18:53:31 +00:00
|
|
|
download_testdata();
|
2021-08-10 11:50:19 +00:00
|
|
|
# Exit the terminal
|
|
|
|
desktop_vt;
|
|
|
|
|
2023-10-02 14:02:11 +00:00
|
|
|
# Set the update notification timestamp
|
|
|
|
set_update_notification_timestamp();
|
2021-08-10 11:50:19 +00:00
|
|
|
# Start the application
|
|
|
|
menu_launch_type("image viewer");
|
|
|
|
# Check that is started
|
|
|
|
assert_screen 'apps_run_imageviewer';
|
|
|
|
|
|
|
|
# Fullsize the Loupe window.
|
|
|
|
send_key("super-up");
|
|
|
|
|
|
|
|
# Open the test file to create a starting point for the other EoG tests.
|
|
|
|
send_key("ctrl-o");
|
|
|
|
|
|
|
|
# Open the Pictures folder.
|
|
|
|
assert_and_click("gnome_dirs_pictures", button => "left", timeout => 30);
|
|
|
|
|
|
|
|
# Select the image.jpg file.
|
|
|
|
assert_and_click("loupe_file_select_jpg", button => "left", timeout => 30);
|
|
|
|
|
|
|
|
# Hit enter to open it.
|
|
|
|
send_key("ret");
|
|
|
|
|
|
|
|
# Check that the file has been successfully opened.
|
|
|
|
assert_screen("loupe_image_default");
|
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
|
|
|
return {fatal => 1, milestone => 1};
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|