aboutsummaryrefslogtreecommitdiffstats
path: root/Tests/system/suite_installation/tst_8_uninstall/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/system/suite_installation/tst_8_uninstall/test.py')
-rw-r--r--Tests/system/suite_installation/tst_8_uninstall/test.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/Tests/system/suite_installation/tst_8_uninstall/test.py b/Tests/system/suite_installation/tst_8_uninstall/test.py
new file mode 100644
index 00000000..f958ce42
--- /dev/null
+++ b/Tests/system/suite_installation/tst_8_uninstall/test.py
@@ -0,0 +1,35 @@
+####################################################################################################
+# Copyright (C) 2023 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+####################################################################################################
+
+# -*- coding: utf-8 -*-
+
+source("../../shared/utils.py")
+source("../shared/scripts/install_utils.py")
+
+import names
+
+
+def main():
+ test.warning("This is a semi-manual test.",
+ "It is designed to run on VS with Qt VS Tools installed "
+ "and requires manual steps.")
+ version = startAppGetVersion()
+ if not version:
+ return
+ if uninstallQtVsTools(version):
+ test.warning("If the test succeeded so far, it now requires manual steps.",
+ "Please finish the steps of the VSIX Installer wizard which should have "
+ "appeared. After this, you can run tst_uninstall_verify to check the result.")
+ closeMainWindow()
+
+
+def uninstallQtVsTools(version):
+ selectInstalledVsTools(version)
+ mouseClick(waitForObject(names.msvs_ExtensionManager_UI_InstalledExtItem_Uninstall_Label))
+ clickButton(waitForObject(names.microsoft_Visual_Studio_Yes_Button))
+ test.verify(waitFor(changesScheduledLabelExists, 5000),
+ "Were changes to the installation scheduled?")
+ clickButton(waitForObject(names.manage_Extensions_Close_Button))
+ return True