summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2020-02-03 08:35:43 +0100
committerChristian Stenger <christian.stenger@qt.io>2020-02-03 12:04:23 +0000
commit1a86b688099478fd8b47d7b13f99cf060a34887e (patch)
treef0be2d55bf4cda15595563714f10b021753ae2a6 /tests
parentbae6e3f854b98b87d078363cad7c2495fc3bfe10 (diff)
downloadqt-creator-1a86b688099478fd8b47d7b13f99cf060a34887e.tar.gz
Squish: Fix test for session handling
Wait for project parsing on re-opening a session that contains projects before trying to interact. Change-Id: I631ee72573e1ff1fb115825aaf756489d02f18ab Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/system/suite_general/tst_session_handling/test.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/system/suite_general/tst_session_handling/test.py b/tests/system/suite_general/tst_session_handling/test.py
index 702273b265..96a3f33dd9 100644
--- a/tests/system/suite_general/tst_session_handling/test.py
+++ b/tests/system/suite_general/tst_session_handling/test.py
@@ -54,6 +54,7 @@ def main():
checkNavigator(0, "Verifying that no more project is opened.")
checkOpenDocuments(0, "Verifying whether all files have been closed.")
switchSession(sessionName)
+ waitForProjectParsing()
test.verify(waitFor("sessionName in str(mainWindow.windowTitle)", 2000),
"Verifying window title contains created session name.")
checkNavigator(52, "Verifying whether all projects have been re-opened.")