aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/system/suite_CSUP/tst_CSUP01/test.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/system/suite_CSUP/tst_CSUP01/test.py b/tests/system/suite_CSUP/tst_CSUP01/test.py
index 2580ed06556..20316f39775 100644
--- a/tests/system/suite_CSUP/tst_CSUP01/test.py
+++ b/tests/system/suite_CSUP/tst_CSUP01/test.py
@@ -81,9 +81,11 @@ def main():
try:
proposalListView = waitForObject(":popupFrame_Proposal_QListView")
waitForObjectItem(proposalListView, "unsigned")
- if useClang and platform.system() == 'Linux': # QTCREATORBUG-23159
- test.compare(proposalListView.model().rowCount(), 1,
- 'Only one proposal for "unsi"?')
+ model = proposalListView.model()
+ if test.verify(model.rowCount() >= 1,
+ 'At least one proposal for "unsi"?'):
+ test.compare(dumpItems(model)[0], 'unsigned',
+ '"unsigned" is the first proposal for "unsi"?')
type(proposalListView, "<Tab>")
test.compare(str(lineUnderCursor(editorWidget)).strip(), "unsigned",
"Step 4: Verifying if: Word 'unsigned' is completed because only one option is available.")