forked from qt-creator/qt-creator
Squish: Stabilize clickOnTab() on OSX
Change-Id: I984a6a2012668e0b0095b2118b9d7001c7cda616 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
@@ -600,6 +600,7 @@ def clickOnTab(tabBarStr, tabText, timeout=5000):
|
||||
if platform.system() == 'Darwin' and not tabBar.visible:
|
||||
test.log("Using workaround for Mac.")
|
||||
setWindowState(tabBar, WindowState.Normal)
|
||||
tabBar = waitForObject(tabBarStr, 2000)
|
||||
clickTab(tabBar, tabText)
|
||||
waitFor("str(tabBar.tabText(tabBar.currentIndex)) == '%s'" % tabText, timeout)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user