aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Tests/system/shared/globalnames.py1
-rw-r--r--Tests/system/shared/utils.py9
2 files changed, 8 insertions, 2 deletions
diff --git a/Tests/system/shared/globalnames.py b/Tests/system/shared/globalnames.py
index a5dd8784..e2cebb95 100644
--- a/Tests/system/shared/globalnames.py
+++ b/Tests/system/shared/globalnames.py
@@ -17,3 +17,4 @@ extensions_MenuItem = {"container": microsoft_Visual_Studio_MenuBar, "text": "Ex
msvs_Skip_this_for_now_Button = {"container": microsoft_Visual_Studio_Window, "text": "Skip this for now.", "type": "Button"}
msvs_Start_Visual_Studio_Button = {"container": microsoft_Visual_Studio_Window, "text": "Start Visual Studio", "type": "Button"}
msvs_Not_now_maybe_later_Label = {"container": microsoft_Visual_Studio_Window, "text": "Not now, maybe later.", "type": "Label"}
+Initializing_MenuItem = {"text": RegularExpression(".*Initializing...$"), "type": "MenuItem"}
diff --git a/Tests/system/shared/utils.py b/Tests/system/shared/utils.py
index 079407a4..aa7bb555 100644
--- a/Tests/system/shared/utils.py
+++ b/Tests/system/shared/utils.py
@@ -39,8 +39,13 @@ def startAppGetVersion(waitForInitialDialogs=False):
def openVsToolsMenu(version):
- mouseClick(waitForObject(globalnames.extensions_MenuItem))
- mouseClick(waitForObject(globalnames.pART_Popup_Qt_VS_Tools_MenuItem, 5000))
+ while True:
+ mouseClick(waitForObject(globalnames.extensions_MenuItem))
+ mouseClick(waitForObject(globalnames.pART_Popup_Qt_VS_Tools_MenuItem, 5000))
+ if not object.exists(globalnames.Initializing_MenuItem):
+ break
+ mouseClick(waitForObject(globalnames.extensions_MenuItem)) # close menu
+ snooze(4)
def closeMainWindow():