From a96878932461541e0c094e7a231634d9657923aa Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Mon, 29 Jul 2019 18:18:19 +0200 Subject: [PATCH] Squish: Stabilize tst_qml_js_console Change-Id: Id5c72fffddcbf88ece36b4109621e10e2a030532 Reviewed-by: Christian Stenger --- tests/system/suite_debugger/tst_qml_js_console/test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/system/suite_debugger/tst_qml_js_console/test.py b/tests/system/suite_debugger/tst_qml_js_console/test.py index 329839cb7fe..b94303bfb1b 100644 --- a/tests/system/suite_debugger/tst_qml_js_console/test.py +++ b/tests/system/suite_debugger/tst_qml_js_console/test.py @@ -139,6 +139,7 @@ def main(): switchViewTo(ViewConstants.EDIT) # start debugging clickButton(fancyDebugButton) + progressBarWait() waitForObject(":Locals and Expressions_Debugger::Internal::WatchTreeView") rootIndex = getQModelIndexStr("text='QQmlEngine'", ":Locals and Expressions_Debugger::Internal::WatchTreeView") @@ -147,7 +148,9 @@ def main(): doubleClick(waitForObject(mainRect)) if not object.exists(":DebugModeWidget_Debugger::Internal::ConsoleView"): invokeMenuItem("Window", "Output Panes", "QML Debugger Console") - progressBarWait() + # Window might be too small to show Locals, so close what we don't need + for view in ("Stack", "Breakpoints", "Expressions"): + invokeMenuItem("Window", "Views", view) # color and float values have additional ZERO WIDTH SPACE (\u200b), different usage of # whitespaces inside expressions is part of the test checks = [("color", u"#\u200b008000"), ("width", "50"),