1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-09-21 06:27:22 +00:00

gnome-text-editor: also select right directory for nautilus chooser

The nautilus-provided chooser also does not default to Documents
as the output directory. Sigh.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-08-20 18:10:04 -07:00
parent 9f6113d581
commit a7cd9f30db

View File

@ -34,9 +34,14 @@ sub run {
# Save the newly created file.
send_key("ctrl-s");
wait_still_screen(3);
# if we hit the nautilus save-as screen, we have to click to edit
# the filename
click_lastmatch if (check_screen "nautilus_save_filename");
if (check_screen "nautilus_save_filename") {
# if we hit the nautilus save-as screen, we have to select
# the right folder...
assert_and_click "nautilus_directory_documents";
# then click to edit the filename
assert_and_click "nautilus_save_filename";
}
# select the entire prefilled name (including extension) to overwrite it
send_key("ctrl-a");
wait_still_screen(3);