diff options
Diffstat (limited to 'Tests/system/suite_installation/tst_9_uninstall_verify/test.py')
-rw-r--r-- | Tests/system/suite_installation/tst_9_uninstall_verify/test.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Tests/system/suite_installation/tst_9_uninstall_verify/test.py b/Tests/system/suite_installation/tst_9_uninstall_verify/test.py new file mode 100644 index 00000000..6579363e --- /dev/null +++ b/Tests/system/suite_installation/tst_9_uninstall_verify/test.py @@ -0,0 +1,33 @@ +#################################################################################################### +# 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(): + version = startAppGetVersion() + if not version: + return + vsToolsLabelText = selectInstalledVsTools(version) + test.compare(vsToolsLabelText, None, + "Are 'Qt VS Tools for Visual Studio %s' installed?" % version) + clickButton(waitForObject(names.manage_Extensions_Close_Button)) + checkMenuItems(version) + closeMainWindow() + + +def checkMenuItems(version): + try: + openVsToolsMenu(version) + test.fail("Surplus menu items", "Qt VS Tools show unexpected menu items.") + mouseClick(waitForObject(globalnames.file_MenuItem)) # Close menu + except: + mouseClick(waitForObject(globalnames.file_MenuItem)) # Close Extensions menu + test.passes("Qt VS Tools do not show unexpected menu items.") |