1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-25 07:13:09 +00:00
os-autoinst-distri-fedora/tests/applications/kwrite/show_shortcuts.pm
2024-03-28 13:42:18 +01:00

35 lines
695 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# This part tests that Shortcuts can be shown.
sub run {
my $self = shift;
# wait for snapshot restore to settle
sleep 5;
# Click into the text to get focus
assert_and_click("kwrite_menu_settings");
# Open Shortcuts.
assert_and_click("kwrite_submenu_shorcuts");
# Assert the screen and move to next one
assert_screen "kwrite_shortcuts_shown";
# Find a new window shortcut
assert_and_click("kwrite_search_bar");
type_very_safely("new window");
assert_screen("kwrite_newwindow_shortcut_found");
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: