1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 05:53:09 +00:00

desktop_printing: be a bit more defensive when launching editor

Seeing a failure quite often lately where when we try and hit
ctrl-p to print, we just type a p. There's no wait between
maximizing and trying to print, and only a short wait on
launch, so let's try being a bit more defensive there.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-04-21 08:18:56 -07:00
parent 42db9be5fb
commit f86cbd93fb

View File

@ -61,9 +61,10 @@ sub run {
wait_still_screen(2); wait_still_screen(2);
# Open the text editor and maximize it. # Open the text editor and maximize it.
type_very_safely "$editor /home/test/testfile.txt &\n"; wait_screen_change { type_very_safely "$editor /home/test/testfile.txt &\n"; };
wait_still_screen(stilltime=>3, similarity_level=>45); wait_still_screen(stilltime=>2, similarity_level=>45);
send_key($maximize); wait_screen_change { send_key($maximize); };
wait_still_screen(stilltime=>2, similarity_level=>45);
# Print the file using one of the available methods # Print the file using one of the available methods
send_key "ctrl-p"; send_key "ctrl-p";