diff --git a/tests/system/suite_CSUP/tst_CSUP02/test.py b/tests/system/suite_CSUP/tst_CSUP02/test.py index 147f1b09350..881a7e709e3 100644 --- a/tests/system/suite_CSUP/tst_CSUP02/test.py +++ b/tests/system/suite_CSUP/tst_CSUP02/test.py @@ -25,6 +25,13 @@ source("../../shared/qtcreator.py") +import time + +def delayedType(editor, text): + for c in text: + type(editor, c) + time.sleep(0.1) + # entry of test def main(): for useClang in [False, True]: @@ -46,15 +53,10 @@ def main(): # Focus "class derived from QObject" in the list and press Tab or Enter to complete the code. editorWidget = findObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget") mouseClick(editorWidget, 5, 5, 0, Qt.LeftButton) + jumpToFirstLine(editorWidget) type(editorWidget, "") type(editorWidget, "") - type(editorWidget, "class") - if useClang and JIRA.isBugStillOpen(18769): - snooze(4) - if platform.system() == "Darwin": - type(editorWidget, "") - else: - type(editorWidget, "") + delayedType(editorWidget, "class") listView = waitForObject(":popupFrame_Proposal_QListView") shownProposals = dumpItems(listView.model()) usedProposal = "class derived from QObject"