mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-01-03 08:03:14 +00:00
desktop_printing: do the file find from a VT
script_output has no arg to make it type slowly, and I'm seeing that the test often fails trying to do full-speed script_output at a desktop terminal. Let's do this part from a VT. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
dd6ebb2171
commit
2d67e0b140
@ -88,13 +88,12 @@ sub run {
|
|||||||
assert_and_click "printing_print";
|
assert_and_click "printing_print";
|
||||||
# Exit the application
|
# Exit the application
|
||||||
send_key "alt-f4";
|
send_key "alt-f4";
|
||||||
wait_still_screen(stilltime=>3, similarity_level=>45);
|
|
||||||
# The CLI might be blocked by some application output. Pressing the
|
|
||||||
# Enter key will dismiss them and return the CLI to the ready status.
|
|
||||||
send_key("ret");
|
|
||||||
|
|
||||||
# Get the name of the printed file. The path location depends
|
# Get the name of the printed file. The path location depends
|
||||||
# on the selected method.
|
# on the selected method. We do this on a VT because there's
|
||||||
|
# no argument to script_output to make it type slowly, and
|
||||||
|
# it often fails typing fast in a desktop terminal
|
||||||
|
$self->root_console(tty=>3);
|
||||||
my $directory = $usecups ? "/home/test/Desktop" : "/home/test/Documents";
|
my $directory = $usecups ? "/home/test/Desktop" : "/home/test/Documents";
|
||||||
my $filename = script_output("ls $directory");
|
my $filename = script_output("ls $directory");
|
||||||
my $filepath = "$directory/$filename";
|
my $filepath = "$directory/$filename";
|
||||||
@ -102,6 +101,12 @@ sub run {
|
|||||||
# Echo that filename to the terminal for troubleshooting purposes
|
# Echo that filename to the terminal for troubleshooting purposes
|
||||||
diag("The file of the printed out file is located in $filepath");
|
diag("The file of the printed out file is located in $filepath");
|
||||||
|
|
||||||
|
# back to the desktop
|
||||||
|
desktop_vt();
|
||||||
|
wait_still_screen(stilltime=>3, similarity_level=>45);
|
||||||
|
# The CLI might be blocked by some application output. Pressing the
|
||||||
|
# Enter key will dismiss them and return the CLI to the ready status.
|
||||||
|
send_key("ret");
|
||||||
# Open the pdf file in a Document reader and check that it is correctly printed.
|
# Open the pdf file in a Document reader and check that it is correctly printed.
|
||||||
type_safely("$viewer $filepath &\n");
|
type_safely("$viewer $filepath &\n");
|
||||||
wait_still_screen(stilltime=>3, similarity_level=>45);
|
wait_still_screen(stilltime=>3, similarity_level=>45);
|
||||||
|
Loading…
Reference in New Issue
Block a user