Skip to content

Commit 4a90ff5

Browse files
committed
Add object names for GUI testing
1 parent 3f6b29d commit 4a90ff5

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/qml/AppToolBar.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ToolBar {
1212
Button {
1313
iconSource: "qrc:/images/add.svg"
1414
text: qsTr("Connect to Redis Server")
15+
objectName: "rdm_connect_to_redis_server_btn"
1516
Layout.preferredWidth: 230
1617

1718
onClicked: {

src/qml/ConnectionSettignsDialog.qml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import "./common"
77

88
Dialog {
99
id: root
10+
objectName: "rdm_connection_settings_dialog"
1011
title: !settings || !settings.name ? qsTr("New Connection Settings") : qsTr("Edit Connection Settings - %1").arg(settings.name)
1112

1213
property var settings
@@ -139,6 +140,7 @@ Dialog {
139140

140141
TextField {
141142
id: connectionName
143+
objectName: "rdm_connection_name_field"
142144
Layout.fillWidth: true
143145
placeholderText: qsTr("Connection Name")
144146
text: root.settings ? root.settings.name : ""

src/qml/QuickStartDialog.qml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import "./common"
66

77
Dialog {
88
id: root
9+
objectName: "rdm_quick_start_dialog"
910
title: qsTr("Explore Redis Desktop Manager")
1011

1112
contentItem: Item {
@@ -34,6 +35,7 @@ Dialog {
3435

3536
Item { Layout.fillWidth: true; }
3637
Button {
38+
objectName: "rdm_quick_start_dialog_ok_btn"
3739
text: qsTr("OK")
3840
onClicked: root.close()
3941
}

0 commit comments

Comments
 (0)