aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2020-08-17 19:27:47 +0200
committerRobert Loehning <robert.loehning@qt.io>2020-08-20 10:44:12 +0000
commitf29d73115d1997d30fce3a12941e443699dbc5b8 (patch)
tree77f5ff37c839d0c5edc6915ecd59e319cbb8d20e /tests
parent2fe5b9f9b3e35c8a85ea71fbcd33231979052143 (diff)
Squish: Avoid focus problems after cloning
The dialog shows a kind of completion popup. After that, the Locator does not get proper focus anymore. Clicking into the dialog closes the completion popup and seems to fix the focus problem. Change-Id: I0ae901cc4f23b66d2c3db2c96109be79a0ded52c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/system/objects.map2
-rw-r--r--tests/system/suite_tools/tst_git_clone/test.py9
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/system/objects.map b/tests/system/objects.map
index 98e35535f9..1c016aea44 100644
--- a/tests/system/objects.map
+++ b/tests/system/objects.map
@@ -87,6 +87,7 @@
:Help Widget_Help::Internal::HelpWidget {type='Help::Internal::HelpWidget' unnamed='1' visible='1' windowTitle?='Help -*'}
:Hits_QLabel {text~='\\\\d+ - \\\\d+ of \\\\d+ Hits' type='QLabel' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
:Hits_QResultWidget {aboveWidget=':Hits_QLabel' type='QResultWidget' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
+:JsonWizard_ProjectExplorer::JsonFieldPage {type='ProjectExplorer::JsonFieldPage' unnamed='1' visible='1' window=':New_ProjectExplorer::JsonWizard'}
:Kits_QtVersion_QComboBox {container=':qt_tabwidget_stackedwidget_QWidget' leftWidget=':QtVersionLabel_KitPage' type='QComboBox' unnamed='1' visible='1'}
:Locals and Expressions_Debugger::Internal::WatchTreeView {container=':Debugger.Docks.LocalsAndWatchersDockWidget.Inspector_QFrame' name='WatchWindow' type='Debugger::Internal::WatchTreeView' visible='1'}
:Minimal required Qt version:_QLabel {text='Minimal required Qt version:' type='QLabel' unnamed='1' visible='1' window=':New_ProjectExplorer::JsonWizard'}
@@ -171,6 +172,7 @@
:QtSupport__Internal__QtVersionManager.errorLabel.QLabel {container=':qt_tabwidget_stackedwidget.QtSupport__Internal__QtVersionManager_QtSupport::Internal::QtOptionsPageWidget' name='errorLabel' type='QLabel' visible='1'}
:QtSupport__Internal__QtVersionManager.qmake_QLabel {container=':qt_tabwidget_stackedwidget.QtSupport__Internal__QtVersionManager_QtSupport::Internal::QtOptionsPageWidget' name='qmakePath' type='QLabel' visible='1'}
:QtVersionLabel_KitPage {container=':qt_tabwidget_stackedwidget_QWidget' text='Qt version:' type='QLabel' unnamed='1' visible='1'}
+:Recursive_QCheckBox {name='Recursive' type='QCheckBox' visible='1' window=':New_ProjectExplorer::JsonWizard'}
:Remove_QPushButton {container=':qt_tabwidget_stackedwidget_QScrollArea' text='Remove' type='QPushButton' unnamed='1' visible='1'}
:Restart required.Later_QPushButton {text='Later' type='QPushButton' unnamed='1' visible='1' window=':Restart required_QMessageBox'}
:Restart required_QMessageBox {text='The language change will take effect after restart.' type='QMessageBox' unnamed='1' visible='1'}
diff --git a/tests/system/suite_tools/tst_git_clone/test.py b/tests/system/suite_tools/tst_git_clone/test.py
index 35266deb8f..3eff477741 100644
--- a/tests/system/suite_tools/tst_git_clone/test.py
+++ b/tests/system/suite_tools/tst_git_clone/test.py
@@ -80,6 +80,14 @@ def verifyFiles(targetDir):
test.verify(os.path.exists(os.path.join(targetDir, cloneDir, file)),
"Verify the existence of %s" % file)
+
+def closeProposalPopup():
+ page = waitForObject(":JsonWizard_ProjectExplorer::JsonFieldPage")
+ checkbox = waitForObjectExists(":Recursive_QCheckBox")
+ mouseClick(page, page.width / 2, (page.height + checkbox.y + checkbox.height) / 2,
+ 0, Qt.LeftButton)
+
+
def main():
startQC()
if not startedWithoutPluginError():
@@ -90,6 +98,7 @@ def main():
__createProjectOrFileSelectType__(" Import Project", "Git Clone")
replaceEditorContent(waitForObject("{name='Repo' type='QLineEdit' visible='1'}"),
cloneUrl)
+ closeProposalPopup()
targetDir = tempDir()
replaceEditorContent(waitForObject(":Working Copy_Utils::BaseValidatingLineEdit"),
targetDir)