mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-07-17 02:41:46 +00:00
We have enhanced the menu_launch_type to allow for start checking and maximizing applications. This PR uses the new functions wherever it seems logical. If special logic was used for certain cases, we have not touched these to preserve the exact behaviour. The crash workaround for the Fonts flatpak is dropped because it no longer seems to be needed with the latest version of the flatpak, and dropping it simplifies this migration. Fixes: https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/358
52 lines
1.1 KiB
Perl
52 lines
1.1 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();
|
|
# Return to Desktop
|
|
desktop_vt();
|
|
|
|
# Workaround the KDE double char problem
|
|
kde_doublek_workaround();
|
|
# Start the application
|
|
menu_launch_type("kwrite", checkstart => 1, maximize => 1);
|
|
|
|
# Hit key-combo to open the file
|
|
send_key("ctrl-o");
|
|
wait_still_screen(2);
|
|
|
|
# Select the Documents directory and press Enter.
|
|
assert_and_click("kwrite_select_documents");
|
|
wait_still_screen(1);
|
|
send_key("ret");
|
|
|
|
# Choose the file
|
|
assert_and_click("kwrite_txt_file");
|
|
|
|
# Open it
|
|
send_key("ret");
|
|
wait_still_screen(3);
|
|
|
|
# Check that the document has been opened
|
|
assert_screen("kwrite_text_file_opened");
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1, milestone => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|