1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-06-22 14:31:39 +00:00
os-autoinst-distri-fedora/tests/applications/kwrite/show_help.pm
Lukáš Růžička d240c08a70 Create a test suite for KWrite
This PR creates a basic test suite for KWrite, the KDE text editor.
Its steps follow the Gnome text editor test case to provide the same
level of checking.

Fixes: https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/363
2025-03-06 06:59:57 +00:00

39 lines
927 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# This part tests that Help can be shown.
sub run {
my $self = shift;
sleep(5);
# Click into the window to get focus
assert_and_click("kwrite_line_title");
# Open Help.
send_key("f1");
assert_screen "kwrite_help_shown";
## Navigate through several screens
assert_and_click("kwrite_help_title");
# Use down arrow to navigate through the screen
# to arrive at something clickable.
send_key_until_needlematch("kwrite_help_link_introduction", "down", 7);
click_lastmatch;
assert_screen "kwrite_help_introduction";
send_key_until_needlematch("kwrite_help_next", "down", 7);
click_lastmatch;
assert_screen("kwrite_help_cmdoptions");
assert_and_click("kwrite_help_next");
assert_screen("kwrite_help_credits");
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: