mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-02-08 16:43:13 +00:00
The editor started to show spell-checking that would require a lot of new needles to be created. Theredore, we set the language to English to stop showing the spelling mistakes in aaa_setup.pm Also, the application started to have problems with getting correct focus, so we want to click into the text before the status gets recorded.
62 lines
1.5 KiB
Perl
62 lines
1.5 KiB
Perl
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;
|
|
|
|
# Go to the root console to set up the test data and necessary stuff.
|
|
$self->root_console(tty => 3);
|
|
|
|
# Get the test data from the test data repository.
|
|
check_and_install_git();
|
|
download_testdata();
|
|
# 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");
|
|
# Return to Desktop
|
|
desktop_vt();
|
|
|
|
# Start the application
|
|
menu_launch_type("text-editor");
|
|
# 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);
|
|
|
|
# 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");
|
|
|
|
# Set the document language to English in order
|
|
# to have the spelling control correct.
|
|
assert_and_click("gte_line_word", button => "right");
|
|
assert_and_click("gte_context_languages");
|
|
assert_and_click("gte_context_language_english");
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1, milestone => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|