diff options
Diffstat (limited to 'tests/system/shared/suites_qtta.py')
-rwxr-xr-x | tests/system/shared/suites_qtta.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/system/shared/suites_qtta.py b/tests/system/shared/suites_qtta.py index 6a5e5ea6f9b..de3bbd4e5ce 100755 --- a/tests/system/shared/suites_qtta.py +++ b/tests/system/shared/suites_qtta.py @@ -64,12 +64,15 @@ def checkSyntaxError(issuesView, expectedTextsArray, warnIfMoreIssues = True): return False # change autocomplete options to manual -def changeAutocompleteToManual(): +def changeAutocompleteToManual(toManual=True): invokeMenuItem("Tools", "Options...") mouseClick(waitForObjectItem(":Options_QListView", "Text Editor"), 5, 5, 0, Qt.LeftButton) clickOnTab(":Options.qt_tabwidget_tabbar_QTabBar", "Completion") - ensureChecked(waitForObject(":Behavior.Autocomplete common prefix_QCheckBox"), False) - selectFromCombo(":Behavior.completionTrigger_QComboBox", "Manually") + ensureChecked(waitForObject(":Behavior.Autocomplete common prefix_QCheckBox"), not toManual) + activateCompletion = "Always" + if toManual: + activateCompletion = "Manually" + selectFromCombo(":Behavior.completionTrigger_QComboBox", activateCompletion) verifyEnabled(":Options.OK_QPushButton") clickButton(waitForObject(":Options.OK_QPushButton")) |