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>
This commit is contained in:
Christian Stenger
2020-02-03 08:35:43 +01:00
parent bae6e3f854
commit 1a86b68809

View File

@@ -54,6 +54,7 @@ def main():
checkNavigator(0, "Verifying that no more project is opened.") checkNavigator(0, "Verifying that no more project is opened.")
checkOpenDocuments(0, "Verifying whether all files have been closed.") checkOpenDocuments(0, "Verifying whether all files have been closed.")
switchSession(sessionName) switchSession(sessionName)
waitForProjectParsing()
test.verify(waitFor("sessionName in str(mainWindow.windowTitle)", 2000), test.verify(waitFor("sessionName in str(mainWindow.windowTitle)", 2000),
"Verifying window title contains created session name.") "Verifying window title contains created session name.")
checkNavigator(52, "Verifying whether all projects have been re-opened.") checkNavigator(52, "Verifying whether all projects have been re-opened.")