mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-21 13:33:08 +00:00
doublek_workaround: tweak to work for other letters too
In a couple of cases we type something that *doesn't* start with a 'k', so we should use that other letter for the workaround. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
4ca41e5b71
commit
358695e417
@ -1767,11 +1767,13 @@ sub start_applications {
|
||||
# close operation before we do anything 'real'. this is repeated in
|
||||
# several tests so we share it here
|
||||
sub kde_doublek_workaround {
|
||||
my %args = @_;
|
||||
$args{key} //= 'k';
|
||||
wait_screen_change { send_key 'super'; };
|
||||
wait_still_screen 3;
|
||||
send_key "k";
|
||||
send_key $args{key};
|
||||
wait_still_screen 5;
|
||||
send_key "esc";
|
||||
send_key 'esc';
|
||||
}
|
||||
|
||||
1;
|
||||
|
@ -8,7 +8,7 @@ sub run {
|
||||
my $relnum = get_release_number;
|
||||
check_desktop;
|
||||
# try and avoid double-typing issues
|
||||
kde_doublek_workaround if (get_var("DESKTOP") eq "kde");
|
||||
kde_doublek_workaround(key => 't') if (get_var("DESKTOP") eq "kde");
|
||||
menu_launch_type('terminal');
|
||||
assert_screen "apps_run_terminal";
|
||||
wait_still_screen(stilltime => 5, similarity_level => 42);
|
||||
|
@ -24,7 +24,7 @@ sub run {
|
||||
# run the updater
|
||||
if ($desktop eq 'kde') {
|
||||
# try and avoid double-typing issues
|
||||
kde_doublek_workaround;
|
||||
kde_doublek_workaround(key => 'd');
|
||||
menu_launch_type('discover');
|
||||
# Wait for it to run and maximize it to make sure we see the
|
||||
# Updates entry
|
||||
|
Loading…
Reference in New Issue
Block a user