mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-11 17:34:23 +00:00
Characters app copy/paste test: be more defensive
There's a failure mode we hit quite often where, when we run the text editor after copying the character, it pops up *behind* the character page. So let's close the page first. When we click the 'Copy Character' button a notification that the character was copied is briefly displayed and if we hit esc while it's visible we dismiss *that* not the character page, so hit esc twice to be safe. If we miss dismissing the notification, the 'extra' press is safe, it doesn't quit the app. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
ed58b15432
commit
637e9e4cfe
@ -14,6 +14,12 @@ sub run {
|
|||||||
assert_screen("chars_love_eyes_dialogue");
|
assert_screen("chars_love_eyes_dialogue");
|
||||||
# Click on Copy Character button.
|
# Click on Copy Character button.
|
||||||
assert_and_click("gnome_copy_button");
|
assert_and_click("gnome_copy_button");
|
||||||
|
# close the character page, so text editor doesn't start under it
|
||||||
|
# we hit esc twice in case the first dismisses the notification
|
||||||
|
wait_still_screen 2;
|
||||||
|
send_key("esc");
|
||||||
|
wait_still_screen 2;
|
||||||
|
send_key("esc");
|
||||||
# Open text editor.
|
# Open text editor.
|
||||||
menu_launch_type("text editor");
|
menu_launch_type("text editor");
|
||||||
wait_still_screen(3);
|
wait_still_screen(3);
|
||||||
|
Loading…
Reference in New Issue
Block a user