2022-01-25 13:45:38 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
|
|
|
|
# This part of the suite prepares downloads the test data and sets up the environment.
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
2022-07-28 20:32:57 +00:00
|
|
|
|
2022-01-25 13:45:38 +00:00
|
|
|
# Go to the root console to set up the test data and necessary stuff.
|
2022-07-28 20:32:57 +00:00
|
|
|
$self->root_console(tty => 3);
|
2022-01-25 13:45:38 +00:00
|
|
|
|
|
|
|
# Get the test data from the test data repository.
|
|
|
|
check_and_install_git();
|
2022-07-01 12:40:10 +00:00
|
|
|
download_testdata();
|
2022-03-16 19:29:02 +00:00
|
|
|
# Remove gedit on upgraded systems so we don't launch it by accident
|
|
|
|
script_run("dnf -y remove gedit") if (get_var("IMAGETYPE") eq "upgrade");
|
2022-01-25 13:45:38 +00:00
|
|
|
# Return to Desktop
|
|
|
|
desktop_vt();
|
|
|
|
|
2023-10-02 14:02:11 +00:00
|
|
|
# Set the update notification timestamp
|
|
|
|
set_update_notification_timestamp();
|
2022-01-25 13:45:38 +00:00
|
|
|
# Start the application
|
2022-03-05 02:39:08 +00:00
|
|
|
menu_launch_type("text-editor");
|
2022-01-25 13:45:38 +00:00
|
|
|
# Check that it started
|
|
|
|
assert_screen("apps_run_texteditor");
|
|
|
|
|
|
|
|
# Open the test file
|
|
|
|
send_key("ctrl-o");
|
|
|
|
wait_still_screen(2);
|
|
|
|
|
|
|
|
# Open the documents location
|
|
|
|
assert_and_click("gnome_open_location_documents");
|
|
|
|
|
|
|
|
# Choose the file
|
|
|
|
assert_and_click("gte_txt_file");
|
|
|
|
|
|
|
|
# Open it
|
|
|
|
send_key("ret");
|
|
|
|
wait_still_screen(3);
|
2022-07-28 20:32:57 +00:00
|
|
|
|
2022-01-25 13:45:38 +00:00
|
|
|
# Make the application fullscreen
|
|
|
|
send_key("super-up");
|
|
|
|
wait_still_screen(3);
|
|
|
|
|
|
|
|
# Check that the document has been opened
|
|
|
|
assert_screen("gte_text_file_opened");
|
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2022-07-28 20:32:57 +00:00
|
|
|
return {fatal => 1, milestone => 1};
|
2022-01-25 13:45:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|