Squish: Update tst_session_handling again

Someone removed the numbers again.
This reverts commit 816d0010c2.
Also, the sessionList was replaced.

Change-Id: I23e135e5b240321e30097c0d1d48c82cb24b6c49
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2016-10-12 19:01:37 +02:00
parent 55eb030f4f
commit bd8c12c94c

View File

@@ -84,7 +84,7 @@ def prepareTestExamples():
def switchSession(toSession):
test.log("Switching to session '%s'" % toSession)
invokeMenuItem("File", "Session Manager...")
clickItem(waitForObject("{name='sessionList' type='QListWidget' visible='1' "
clickItem(waitForObject("{name='sessionView' type='ProjectExplorer::Internal::SessionView' visible='1' "
"window=':Session Manager_ProjectExplorer::Internal::SessionDialog'}"),
toSession, 5, 5, 0, Qt.LeftButton)
clickButton(waitForObject("{name='btSwitch' text='Switch to' type='QPushButton' visible='1' "
@@ -111,9 +111,9 @@ def checkWelcomePage(sessionName, isCurrent=False):
waitForObject("{container='%s' id='sessionsTitle' text='Sessions' type='Text' "
"unnamed='1' visible='true'}" % welcomePage)
if isCurrent:
sessions = ["1: default", "2: %s (current session)" % sessionName]
sessions = ["default", "%s (current session)" % sessionName]
else:
sessions = ["1: default (current session)", "2: %s" % sessionName]
sessions = ["default (current session)", sessionName]
for sessionName in sessions:
test.verify(object.exists("{container='%s' enabled='true' type='Text' unnamed='1' "
"visible='true' text='%s'}" % (welcomePage, sessionName)),