mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-24 23:03:08 +00:00
characters: workaround text editor starting behind characters
We're constantly seeing this test fail on an odd problem where text editor starts *behind* characters. To handle this, check if we see text editor and if not, hit alt-tab. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
57a3e68c56
commit
85d28ce4ab
@ -22,6 +22,12 @@ sub run {
|
|||||||
send_key("esc");
|
send_key("esc");
|
||||||
# Open text editor.
|
# Open text editor.
|
||||||
menu_launch_type("text editor");
|
menu_launch_type("text editor");
|
||||||
|
# For some reason, text editor often starts *behind* characters,
|
||||||
|
# so we may need to hit alt-tab to find it
|
||||||
|
unless(check_screen("apps_run_texteditor", 15)) {
|
||||||
|
send_key("alt-tab");
|
||||||
|
assert_screen("apps_run_texteditor");
|
||||||
|
}
|
||||||
wait_still_screen(3);
|
wait_still_screen(3);
|
||||||
# Paste the character.
|
# Paste the character.
|
||||||
send_key("ctrl-v");
|
send_key("ctrl-v");
|
||||||
|
Loading…
Reference in New Issue
Block a user