diff options
author | Robert Loehning <robert.loehning@qt.io> | 2020-08-17 21:32:56 +0200 |
---|---|---|
committer | Robert Loehning <robert.loehning@qt.io> | 2020-08-20 09:12:58 +0000 |
commit | d305c4d6f4476b13e96e7e48754221ef24942da7 (patch) | |
tree | 435a5beb028de294c7bfa57fae2850a1f7d5cb9e /tests | |
parent | 0c2909a24e625138b0094262a7c26ca9d968aec8 (diff) |
Squish: Modernize failing test from tst_CSUP01
Change-Id: I5755a0265d2810a2a5929657ac455aa380a417e6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/system/suite_CSUP/tst_CSUP01/test.py | 8 |
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 2580ed0655..20316f3977 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.") |