Skip to content

Commit

Permalink
Add object names for ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnom authored and uglide committed May 8, 2018
1 parent 33ad178 commit 06ab504
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/qml/ConnectionSettignsDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ Dialog {

GroupBox {
title: qsTr("Security")
objectName: "rdm_connection_group_box_security"

Layout.columnSpan: 2
Layout.fillWidth: true
Expand Down Expand Up @@ -264,6 +265,7 @@ Dialog {

RadioButton {
id: sshRadioButton
objectName: "rdm_connection_security_ssh_radio_button"
Layout.columnSpan: 2
text: qsTr("SSH Tunnel")
exclusiveGroup: connectionSecurityExGroup
Expand Down Expand Up @@ -305,6 +307,7 @@ Dialog {

TextField {
id: sshUser
objectName: "rdm_connection_security_ssh_user_field"
Layout.fillWidth: true
placeholderText: qsTr("Valid SSH User Name")
text: root.settings ? root.settings.sshUser : ""
Expand All @@ -314,6 +317,7 @@ Dialog {

GroupBox {
title: qsTr("Private Key")
objectName: "rdm_connection_security_ssh_key_group_box"
checkable: true
checked: root.settings ? root.settings.sshPrivateKey : false

Expand All @@ -325,6 +329,7 @@ Dialog {

FilePathInput {
id: sshPrivateKey
objectName: "rdm_connection_security_ssh_key_path_field"

Layout.fillWidth: true

Expand All @@ -344,6 +349,7 @@ Dialog {

GroupBox {
title: qsTr("Password")
objectName: "rdm_connection_security_ssh_password_group_box"
checkable: true
checked: root.settings ? root.settings.sshPassword : true

Expand All @@ -352,6 +358,7 @@ Dialog {

PasswordInput {
id: sshPassword
objectName: "rdm_connection_security_ssh_password_field"
anchors.fill: parent
placeholderText: qsTr("SSH User Password")
text: root.settings ? root.settings.sshPassword : ""
Expand Down
2 changes: 2 additions & 0 deletions src/qml/common/AddressInput.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ RowLayout {

TextField {
id: textField
objectName: "rdm_connection_address_host_field"
Layout.fillWidth: true
}

Label { text: ":" }

SpinBox {
id: portField
objectName: "rdm_connection_address_port_field"
minimumValue: 1
maximumValue: 10000000000
value: 22
Expand Down

0 comments on commit 06ab504

Please sign in to comment.