diff options
author | Robert Löhning <robert.loehning@qt.io> | 2021-08-19 15:20:29 +0200 |
---|---|---|
committer | Robert Löhning <robert.loehning@qt.io> | 2021-08-23 09:26:39 +0000 |
commit | 0824aa2ce383cc3953e49a2f2e1e3e8a3d2c2ce3 (patch) | |
tree | 3bee56b2d4b3a2317764d36f5ae1da9d5d493750 | |
parent | 3d20cc68e52ee3b6957d9fe6f4c74dc25d546f4f (diff) |
Squish: Use tab visibility hack on Windows, too
Change-Id: I6e5f4b75747b703ab46e2f3776b134aff8b34ac0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r-- | tests/system/shared/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index c34e39af7b..59f73f6d85 100644 --- a/tests/system/shared/utils.py +++ b/tests/system/shared/utils.py @@ -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) |