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

gnome-text-editor: only handle spellcheck language if needed

The Flatpak build doesn't have the spellcheck issue at the
moment, and it may be fixed soon in the RPM build. Trying to
'fix' the issue on the flatpak build actually makes the test
fail. So, let's only do the fix if we actually have a misspelled
word.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-07-05 12:19:41 -07:00
parent ba9a36d10e
commit f49c8bc66b
3 changed files with 12 additions and 10 deletions

View File

@ -10,6 +10,6 @@
],
"properties": [],
"tags": [
"gte_line_word"
"gte_line_word_spellcheck"
]
}
}

View File

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

View File

@ -45,14 +45,16 @@ sub run {
# Check that the document has been opened
assert_screen("gte_text_file_opened");
# Set the document language to English in order
# to have the spelling control correct.
assert_and_click("gte_line_word", button => "right");
# the context menu can change while it's loading, so we need to be careful
assert_screen("gte_context_languages");
wait_still_screen 3;
assert_and_click("gte_context_languages");
assert_and_click("gte_context_language_english");
# Set the document language to English if we're seeing spelling
# errors
if (check_screen("gte_line_word_spellcheck", 5)) {
click_lastmatch(button => "right");
# the context menu can change while it's loading, so we need to be careful
assert_screen("gte_context_languages");
wait_still_screen 3;
assert_and_click("gte_context_languages");
assert_and_click("gte_context_language_english");
}
}
sub test_flags {