From e29ae8c5373ce4c9131f38f93e004e4c3c86b5a5 Mon Sep 17 00:00:00 2001
From: Robert Loehning <robert.loehning@digia.com>
Date: Wed, 18 Sep 2013 15:50:12 +0200
Subject: [PATCH] Squish: Fix usages of :OpenDocuments_Widget

Change-Id: I1dde01e3fc8fb5f696054f72c44bdc9387aad5c6
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
---
 tests/system/suite_editors/tst_modify_readonly/test.py  | 1 +
 tests/system/suite_general/tst_session_handling/test.py | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tests/system/suite_editors/tst_modify_readonly/test.py b/tests/system/suite_editors/tst_modify_readonly/test.py
index 11a29a5c728..92a4426bab5 100644
--- a/tests/system/suite_editors/tst_modify_readonly/test.py
+++ b/tests/system/suite_editors/tst_modify_readonly/test.py
@@ -132,6 +132,7 @@ def testSaveChangesAndMakeWritable(modifiedFiles, readOnlyFiles):
                                   "visible='1' window=%s}" % saveDlgStr))
 
 def checkOpenDocumentsContains(itemName):
+    selectFromCombo(":Qt Creator_Core::Internal::NavComboBox", "Open Documents")
     openDocsTreeViewModel = waitForObject(":OpenDocuments_Widget").model()
     result = None
     found = False
diff --git a/tests/system/suite_general/tst_session_handling/test.py b/tests/system/suite_general/tst_session_handling/test.py
index db53e9597f5..6079a2f06fe 100644
--- a/tests/system/suite_general/tst_session_handling/test.py
+++ b/tests/system/suite_general/tst_session_handling/test.py
@@ -129,6 +129,7 @@ def checkNavigator(expectedRows, message):
     test.compare(expectedRows, len(__iterateChildren__(navigatorModel, QModelIndex())), message)
 
 def checkOpenDocuments(expectedRows, message):
+    selectFromCombo(":Qt Creator_Core::Internal::NavComboBox", "Open Documents")
     openDocsWidget = waitForObject(":OpenDocuments_Widget")
     test.compare(openDocsWidget.model().rowCount(), expectedRows, message)
 
-- 
GitLab