From d305c4d6f4476b13e96e7e48754221ef24942da7 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Mon, 17 Aug 2020 21:32:56 +0200 Subject: [PATCH] Squish: Modernize failing test from tst_CSUP01 Change-Id: I5755a0265d2810a2a5929657ac455aa380a417e6 Reviewed-by: Christian Stenger --- tests/system/suite_CSUP/tst_CSUP01/test.py | 8 +++++--- 1 file 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, "") test.compare(str(lineUnderCursor(editorWidget)).strip(), "unsigned", "Step 4: Verifying if: Word 'unsigned' is completed because only one option is available.")