mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-12-22 02:13:08 +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:
parent
42db9be5fb
commit
f86cbd93fb
@ -61,9 +61,10 @@ sub run {
|
||||
wait_still_screen(2);
|
||||
|
||||
# Open the text editor and maximize it.
|
||||
type_very_safely "$editor /home/test/testfile.txt &\n";
|
||||
wait_still_screen(stilltime=>3, similarity_level=>45);
|
||||
send_key($maximize);
|
||||
wait_screen_change { type_very_safely "$editor /home/test/testfile.txt &\n"; };
|
||||
wait_still_screen(stilltime=>2, similarity_level=>45);
|
||||
wait_screen_change { send_key($maximize); };
|
||||
wait_still_screen(stilltime=>2, similarity_level=>45);
|
||||
|
||||
# Print the file using one of the available methods
|
||||
send_key "ctrl-p";
|
||||
|
Loading…
Reference in New Issue
Block a user