aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Löhning <robert.loehning@qt.io>2023-06-12 17:52:20 +0200
committerRobert Löhning <robert.loehning@qt.io>2023-11-30 10:15:15 +0000
commitca6e4b6bfd7c8128c35919c9d37c574b60edf27f (patch)
treed14b511ea9473abedaf9f39184c26cbda50d65dc
parentaf573bda2f55b8eeb4d5a3a217efad494a204bb8 (diff)
Squish: Handle the "Sign in" nagscreen
Change-Id: I70657698b398fe5995eb7c5a7e206244aa6f968f Reviewed-by: Miguel Costa <miguel.costa@qt.io>
-rw-r--r--Tests/system/shared/globalnames.py2
-rw-r--r--Tests/system/shared/utils.py6
2 files changed, 8 insertions, 0 deletions
diff --git a/Tests/system/shared/globalnames.py b/Tests/system/shared/globalnames.py
index 1bfb473c..028287db 100644
--- a/Tests/system/shared/globalnames.py
+++ b/Tests/system/shared/globalnames.py
@@ -20,3 +20,5 @@ msvs_Not_now_maybe_later_Label = {"container": microsoft_Visual_Studio_Window, "
Initializing_MenuItem = {"text": RegularExpression(".*Initializing...$"), "type": "MenuItem"}
pART_Popup_New_MenuItem = {"text": "New", "type": "MenuItem"}
pART_Popup_Project_MenuItem = {"text": "Project...", "type": "MenuItem"}
+msvs_Account_Settings_Window = {"text": "Microsoft Visual Studio Account Settings", "type": "Window"}
+msvs_Account_Close_Button = {"container": msvs_Account_Settings_Window, "text": "Close", "type": "Button"}
diff --git a/Tests/system/shared/utils.py b/Tests/system/shared/utils.py
index aa7bb555..4ccb3ec8 100644
--- a/Tests/system/shared/utils.py
+++ b/Tests/system/shared/utils.py
@@ -35,6 +35,12 @@ def startAppGetVersion(waitForInitialDialogs=False):
except:
pass
mouseClick(waitForObject(globalnames.continueWithoutCode_Label))
+ try:
+ if version == "2022":
+ # If it appears, close the "Sign in" nagscreen.
+ clickButton(waitForObject(globalnames.msvs_Account_Close_Button, 10000))
+ except:
+ pass
return version