From 455497725bc3c5211b1a7d34717b53c56c654b43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Wed, 24 Jul 2024 22:53:24 +0200 Subject: [PATCH] SquishTests: Make tst_designer_autocomplete pass on clangd - Give GenericProposalWidget more time to appear because the precise clangd-based code model is not as quick as the built-in one. - Don't search for button's name in list of proposals because clangd seems to generate too many proposals for this to work reliably. It's pointless anyway because it doesn't matter whether the button is being displayed somewhere deep down in the list. The following tests validate whether the button is available. Change-Id: I8f59154c0ce5251d942665084e0e4a54626853bc Reviewed-by: Christian Stenger --- .../system/suite_tools/tst_designer_autocomplete/test.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/system/suite_tools/tst_designer_autocomplete/test.py b/tests/system/suite_tools/tst_designer_autocomplete/test.py index 1576e26e717..4e055d40735 100644 --- a/tests/system/suite_tools/tst_designer_autocomplete/test.py +++ b/tests/system/suite_tools/tst_designer_autocomplete/test.py @@ -64,16 +64,12 @@ def main(): snooze(1) type(editor, ">") - if not test.verify(waitFor(proposalExists, 1500), "Proposal should be shown"): + if not test.verify(waitFor(proposalExists, 6000), "Proposal should be shown"): type(editor, "") continue proposalListView = waitForObject(':popupFrame_Proposal_QListView') - items = dumpItems(proposalListView.model()) - if test.verify(" %s" % buttonName in items, "Button present in proposal?"): - type(proposalListView, str(buttonName[0])) - else: - test.log(str(items)) + type(proposalListView, str(buttonName[0])) snooze(1) if test.verify(waitFor(proposalExists, 4000), "Verify that GenericProposalWidget is being shown."):