aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Löhning <[email protected]>2025-03-24 23:22:55 +0100
committerRobert Löhning <[email protected]>2025-04-03 09:00:41 +0000
commitee97ea03598e64206090c4cc78d12c2f32b517b2 (patch)
tree3382dc1bf903fdb1e6fbf5ad26cf4d331c2ed67c
parentbf6a98cc7c61d180272a3688ae37ea113bad0327 (diff)
SquishTests: If expected proposal widget is not shown, try once more
tst_memberoperator has some timing issue which we could not solve yet. This seems to happen only because Squish is typing way faster than any human user. Instead of slowing everything down unconditionally, this tries one more time only when the proposal widget was expected but not found. Change-Id: Ibd6bb012091f9120744f23245dea39defcd9cf96 Reviewed-by: Christian Stenger <[email protected]>
-rw-r--r--tests/system/suite_editors/tst_memberoperator/test.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/system/suite_editors/tst_memberoperator/test.py b/tests/system/suite_editors/tst_memberoperator/test.py
index 4d11465b719..5d673011bbe 100644
--- a/tests/system/suite_editors/tst_memberoperator/test.py
+++ b/tests/system/suite_editors/tst_memberoperator/test.py
@@ -62,12 +62,20 @@ def main():
"consider raising the timeout.")
else:
snooze(1)
- type(cppwindow, testData.field(record, "operator"))
+ operator = testData.field(record, "operator")
+ type(cppwindow, operator)
genericProposalWidget = __getGenericProposalListView__(1500)
# the clang code model does not change the . to -> before applying a proposal
# so, verify list of proposals roughly
if useClang:
expectProposal = testData.field(record, "clangProposal") == 'True'
+ if expectProposal and (genericProposalWidget is None):
+ test.warning("Expected proposal widget was not displayed as expected. "
+ "Trying again...")
+ for _ in operator:
+ type(cppwindow, "<Backspace>")
+ type(cppwindow, operator)
+ genericProposalWidget = __getGenericProposalListView__(500)
test.compare(genericProposalWidget is not None, expectProposal,
'Verifying whether proposal widget is displayed as expected.')