From f3bb330ea0b808f71a3d5aad2dc6be18ff19e993 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Tue, 27 Mar 2012 15:26:38 +0200 Subject: [PATCH] Squish: Further improvement of switchViewTo() Change-Id: I25f857f05120882427a8ba7569a4c1b66c474f5e Reviewed-by: Christian Stenger --- tests/system/shared/project_explorer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/system/shared/project_explorer.py b/tests/system/shared/project_explorer.py index 902e79e8906..643182f3f4d 100644 --- a/tests/system/shared/project_explorer.py +++ b/tests/system/shared/project_explorer.py @@ -2,6 +2,8 @@ import re; # this function switches the MainWindow of creator to the specified view def switchViewTo(view): + # make sure that no tooltip is shown, so move the mouse away and wait until all disappear + mouseMove(waitForObject(':Qt Creator_Core::Internal::MainWindow'), -20, -20) waitFor("not QToolTip.isVisible()", 15000) if view < ViewConstants.WELCOME or view > ViewConstants.LAST_AVAILABLE: return