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

Use type_very_safely through gnome-text-editor tests

This will make them slower, but lately type_safely is just not
reliable, particularly in the new_file test, it's constantly
typoing.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-08-22 14:27:50 -07:00
parent b71046eac0
commit ba6a2c508a
2 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ sub run {
# Invoke the Find dialogue # Invoke the Find dialogue
send_key "ctrl-f"; send_key "ctrl-f";
# Type string # Type string
type_safely "sweetest"; type_very_safely "sweetest";
# Confirm # Confirm
send_key "ret"; send_key "ret";
sleep 2; sleep 2;
@ -35,7 +35,7 @@ sub run {
send_key "ctrl-h"; send_key "ctrl-h";
sleep 1; sleep 1;
# Type string. # Type string.
type_safely "Gale"; type_very_safely "Gale";
# Click to get onto the replace line. # Click to get onto the replace line.
assert_and_click("gte_replace_line"); assert_and_click("gte_replace_line");
# Delete, what is typed there # Delete, what is typed there
@ -43,7 +43,7 @@ sub run {
sleep 1; sleep 1;
send_key("delete"); send_key("delete");
# Type replacement string. We purposefully produce a typo. # Type replacement string. We purposefully produce a typo.
type_safely "Wiend"; type_very_safely "Wiend";
# Click to find the string # Click to find the string
assert_and_click "gte_find_next_occurence"; assert_and_click "gte_find_next_occurence";
# and replace it. # and replace it.

View File

@ -16,9 +16,9 @@ sub run {
assert_screen "gte_new_document_opened"; assert_screen "gte_new_document_opened";
# Now let us produce some text # Now let us produce some text
type_safely "# My shopping list.\n\n"; type_very_safely "# My shopping list.\n\n";
type_safely "* **Milk**\n* *Apples*\n* `Bananas`\n* Bread\n* Butter\n* Cheese\n\n"; type_very_safely "* **Milk**\n* *Apples*\n* `Bananas`\n* Bread\n* Butter\n* Cheese\n\n";
type_safely "Happy shopping."; type_very_safely "Happy shopping.";
# Switch on Markdown Highlighting. # Switch on Markdown Highlighting.
assert_and_click("gte_settings_button"); assert_and_click("gte_settings_button");