forked from qt-creator/qt-creator
Squish: Use tab visibility hack on Windows, too
Change-Id: I6e5f4b75747b703ab46e2f3776b134aff8b34ac0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -619,8 +619,8 @@ def clickOnTab(tabBarStr, tabText, timeout=5000):
|
||||
if not waitFor("object.exists(tabBarStr)", timeout):
|
||||
raise LookupError("Could not find QTabBar: %s" % objectMap.realName(tabBarStr))
|
||||
tabBar = findObject(tabBarStr)
|
||||
if platform.system() == 'Darwin' and not tabBar.visible:
|
||||
test.log("Using workaround for Mac.")
|
||||
if not (platform.system() == 'Linux' or tabBar.visible):
|
||||
test.log("Using workaround for Mac and Windows.")
|
||||
setWindowState(tabBar, WindowState.Normal)
|
||||
tabBar = waitForObject(tabBarStr, 2000)
|
||||
clickTab(tabBar, tabText)
|
||||
|
||||
Reference in New Issue
Block a user