1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43: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:
Adam Williamson 2024-09-15 11:54:35 -07:00
parent 4ca41e5b71
commit 358695e417
3 changed files with 6 additions and 4 deletions

View File

@ -1767,11 +1767,13 @@ sub start_applications {
# close operation before we do anything 'real'. this is repeated in # close operation before we do anything 'real'. this is repeated in
# several tests so we share it here # several tests so we share it here
sub kde_doublek_workaround { sub kde_doublek_workaround {
my %args = @_;
$args{key} //= 'k';
wait_screen_change { send_key 'super'; }; wait_screen_change { send_key 'super'; };
wait_still_screen 3; wait_still_screen 3;
send_key "k"; send_key $args{key};
wait_still_screen 5; wait_still_screen 5;
send_key "esc"; send_key 'esc';
} }
1; 1;

View File

@ -8,7 +8,7 @@ sub run {
my $relnum = get_release_number; my $relnum = get_release_number;
check_desktop; check_desktop;
# try and avoid double-typing issues # 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'); menu_launch_type('terminal');
assert_screen "apps_run_terminal"; assert_screen "apps_run_terminal";
wait_still_screen(stilltime => 5, similarity_level => 42); wait_still_screen(stilltime => 5, similarity_level => 42);

View File

@ -24,7 +24,7 @@ sub run {
# run the updater # run the updater
if ($desktop eq 'kde') { if ($desktop eq 'kde') {
# try and avoid double-typing issues # try and avoid double-typing issues
kde_doublek_workaround; kde_doublek_workaround(key => 'd');
menu_launch_type('discover'); menu_launch_type('discover');
# Wait for it to run and maximize it to make sure we see the # Wait for it to run and maximize it to make sure we see the
# Updates entry # Updates entry