summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-08-08 15:59:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-08-08 15:59:55 +0200
commita9e126204719cbec919cff0114e360d6d6939a5c (patch)
treeec62cddd4cc16ad03f41eb1d29525270510645f1 /uitest
parente0c22825fab0576e9897fd007b12e40b2310423f (diff)
Fix UITest_writer_demo with --enable-ext-languagetool
...which would insert requests to fix duplicate "frog frog" and capitalize "frog" at the start of a paragraph, confusing test_tdf46852 Change-Id: I76704af9e2e87ffdb3093ae68f0949b67ef9bf9b
Diffstat (limited to 'uitest')
-rw-r--r--uitest/writer_tests/spellDialog.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/uitest/writer_tests/spellDialog.py b/uitest/writer_tests/spellDialog.py
index 41453fac2f33..a5c2d5c7e7e2 100644
--- a/uitest/writer_tests/spellDialog.py
+++ b/uitest/writer_tests/spellDialog.py
@@ -5,6 +5,7 @@
#
from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict
from libreoffice.linguistic.linguservice import get_spellchecker
@@ -66,8 +67,13 @@ frog, dog, tact"""
cursor.goUp(2, False)
cursor.goLeft(1, False)
- # Step 3: Initiate spellchecking
+ # Step 3: Initiate spellchecking, and make sure "Check grammar" is
+ # unchecked
spell_dialog = self.launch_dialog()
+ checkgrammar = spell_dialog.getChild('checkgrammar')
+ if get_state_as_dict(checkgrammar)['Selected'] == 'true':
+ checkgrammar.executeAction('CLICK', ())
+ self.assertTrue(get_state_as_dict(checkgrammar)['Selected'] == 'false')
# Step 4: Repetitively click on "Correct all" for each misspelling
# prompt until end of document is reached.