1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43:08 +00:00

Handle hitting the new Nautilus save as dialog in more places

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-08-20 16:33:38 -07:00
parent 76711fd039
commit 23ebeb2269
5 changed files with 10 additions and 3 deletions

View File

@ -10,6 +10,6 @@
], ],
"properties": [], "properties": [],
"tags": [ "tags": [
"maps_export_filename" "nautilus_save_filename"
] ]
} }

View File

Before

Width:  |  Height:  |  Size: 246 KiB

After

Width:  |  Height:  |  Size: 246 KiB

View File

@ -15,6 +15,10 @@ sub run {
assert_and_click("evince_menu_saveas", button => "left", timeout => 30); assert_and_click("evince_menu_saveas", button => "left", timeout => 30);
wait_still_screen(2); wait_still_screen(2);
# if we hit the nautilus save-as screen, we have to click to edit
# the filename
click_lastmatch if (check_screen "nautilus_save_filename");
# Type a new name. # Type a new name.
type_very_safely("alternative"); type_very_safely("alternative");

View File

@ -34,6 +34,9 @@ sub run {
# Save the newly created file. # Save the newly created file.
send_key("ctrl-s"); send_key("ctrl-s");
wait_still_screen(3); 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");
# select the entire prefilled name (including extension) to overwrite it # select the entire prefilled name (including extension) to overwrite it
send_key("ctrl-a"); send_key("ctrl-a");
wait_still_screen(3); wait_still_screen(3);

View File

@ -36,7 +36,7 @@ sub run {
assert_and_click("maps_button_export"); assert_and_click("maps_button_export");
wait_still_screen(2); wait_still_screen(2);
# Rename the file and export it # Rename the file and export it
assert_and_click("maps_export_filename"); assert_and_click("nautilus_save_filename");
type_very_safely("exported-map"); type_very_safely("exported-map");
assert_and_click("maps_button_save"); assert_and_click("maps_button_save");
} }