Skip to content
Snippets Groups Projects
Commit c2be09f5 authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Andreas Traczyk
Browse files

test: add wizardview key navigation test

Gitlab: #470

Change-Id: I598cab490149739858958e89cc40cabb5820714a
parent 576da3e0
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,8 @@ Item {
JamiFileDialog {
id: importFromFileDialog
objectName: "photoboothImportFromFileDialog"
mode: JamiFileDialog.OpenFile
title: JamiStrings.chooseAvatarImage
folder: StandardPaths.writableLocation(StandardPaths.PicturesLocation)
......@@ -181,6 +183,8 @@ Item {
PushButton {
id: takePhotoButton
objectName: "takePhotoButton"
Layout.alignment: Qt.AlignHCenter
radius: JamiTheme.primaryRadius
......@@ -223,6 +227,8 @@ Item {
PushButton {
id: clearButton
objectName: "photoboothViewClearButton"
Layout.alignment: Qt.AlignHCenter
visible: LRCInstance.currentAccountAvatarSet
......@@ -253,6 +259,8 @@ Item {
PushButton {
id: importButton
objectName: "photoboothViewImportButton"
property bool focusAfterFileDialogClosed: false
Layout.alignment: Qt.AlignHCenter
......
......@@ -162,7 +162,9 @@ Rectangle {
}
JamiSwitch {
id: passwordSwitch
id: neverShowMeAgainSwitch
objectName: "neverShowMeAgainSwitch"
Layout.alignment: Qt.AlignRight
......@@ -179,6 +181,8 @@ Rectangle {
MaterialButton {
id: backupBtn
objectName: "backupKeyPageBackupBtn"
Layout.alignment: Qt.AlignCenter
Layout.preferredWidth: preferredWidth
Layout.preferredHeight: preferredHeight
......@@ -189,7 +193,7 @@ Rectangle {
pressedColor: JamiTheme.buttonTintedGreyPressed
KeyNavigation.tab: skipBackupBtn
KeyNavigation.up: passwordSwitch
KeyNavigation.up: neverShowMeAgainSwitch
KeyNavigation.down: KeyNavigation.tab
onClicked: exportDialog.open()
......@@ -198,6 +202,8 @@ Rectangle {
MaterialButton {
id: skipBackupBtn
objectName: "backupKeyPageSkipBackupBtn"
Layout.alignment: Qt.AlignCenter
Layout.bottomMargin: JamiTheme.wizardViewPageBackButtonMargins
Layout.preferredWidth: preferredWidth
......@@ -209,7 +215,7 @@ Rectangle {
pressedColor: JamiTheme.buttonTintedGreyPressed
outlined: true
KeyNavigation.tab: passwordSwitch
KeyNavigation.tab: neverShowMeAgainSwitch
KeyNavigation.up: backupBtn
KeyNavigation.down: KeyNavigation.tab
......
......@@ -95,6 +95,8 @@ Rectangle {
MaterialLineEdit {
id: accountManagerEdit
objectName: "accountManagerEdit"
Layout.preferredHeight: fieldLayoutHeight
Layout.preferredWidth: connectBtn.width
Layout.alignment: Qt.AlignCenter
......@@ -136,6 +138,8 @@ Rectangle {
MaterialLineEdit {
id: usernameManagerEdit
objectName: "usernameManagerEdit"
Layout.preferredHeight: fieldLayoutHeight
Layout.preferredWidth: connectBtn.width
Layout.alignment: Qt.AlignCenter
......@@ -157,6 +161,8 @@ Rectangle {
MaterialLineEdit {
id: passwordManagerEdit
objectName: "passwordManagerEdit"
Layout.preferredHeight: fieldLayoutHeight
Layout.preferredWidth: connectBtn.width
Layout.alignment: Qt.AlignCenter
......@@ -185,6 +191,8 @@ Rectangle {
SpinnerButton {
id: connectBtn
objectName: "connectToAccountManagerPageConnectBtn"
Layout.alignment: Qt.AlignCenter
Layout.bottomMargin: errorLabel.visible ? 0 : JamiTheme.wizardViewPageBackButtonMargins
Layout.preferredWidth: preferredWidth
......
......@@ -166,6 +166,8 @@ Rectangle {
MaterialButton {
id: chooseUsernameButton
objectName: "chooseUsernameButton"
Layout.alignment: Qt.AlignCenter
Layout.preferredWidth: preferredWidth
Layout.preferredHeight: preferredHeight
......@@ -189,6 +191,8 @@ Rectangle {
MaterialButton {
id: skipButton
objectName: "nameRegistrationPageSkipButton"
Layout.alignment: Qt.AlignCenter
Layout.preferredWidth: preferredWidth
Layout.preferredHeight: preferredHeight
......@@ -392,6 +396,8 @@ Rectangle {
BackButton {
id: backButton
objectName: "createAccountPageBackButton"
anchors.left: parent.left
anchors.top: parent.top
anchors.margins: JamiTheme.wizardViewPageBackButtonMargins
......
......@@ -165,7 +165,7 @@ Rectangle {
MaterialButton {
id: createAccountButton
objectName: "createAccountButton"
objectName: "createSIPAccountButton"
Layout.alignment: Qt.AlignCenter
Layout.bottomMargin: JamiTheme.wizardViewPageBackButtonMargins
......@@ -196,6 +196,8 @@ Rectangle {
BackButton {
id: backButton
objectName: "createSIPAccountPageBackButton"
anchors.left: parent.left
anchors.top: parent.top
anchors.margins: 20
......
......@@ -116,6 +116,8 @@ Rectangle {
MaterialButton {
id: fileImportBtn
objectName: "fileImportBtn"
Layout.alignment: Qt.AlignCenter
Layout.preferredWidth: preferredWidth
Layout.preferredHeight: preferredHeight
......@@ -198,7 +200,7 @@ Rectangle {
SpinnerButton {
id: connectBtn
objectName: "connectBtn"
objectName: "importFromBackupPageConnectBtn"
Layout.alignment: Qt.AlignCenter
Layout.bottomMargin: errorLabel.visible ? 0 : JamiTheme.wizardViewPageBackButtonMargins
......
......@@ -83,6 +83,8 @@ Rectangle {
MaterialLineEdit {
id: passwordFromDevice
objectName: "passwordFromDevice"
Layout.preferredHeight: fieldLayoutHeight
Layout.preferredWidth: connectBtn.width
Layout.alignment: Qt.AlignCenter
......@@ -128,6 +130,8 @@ Rectangle {
MaterialLineEdit {
id: pinFromDevice
objectName: "pinFromDevice"
Layout.preferredHeight: fieldLayoutHeight
Layout.preferredWidth: connectBtn.width
Layout.alignment: Qt.AlignCenter
......@@ -157,6 +161,8 @@ Rectangle {
SpinnerButton {
id: connectBtn
objectName: "importFromDevicePageConnectBtn"
Layout.alignment: Qt.AlignCenter
Layout.bottomMargin: errorLabel.visible ? 0 : JamiTheme.wizardViewPageBackButtonMargins
Layout.preferredWidth: preferredWidth
......
......@@ -99,6 +99,8 @@ Rectangle {
PhotoboothView {
id: setAvatarWidget
objectName: "setAvatarWidget"
Layout.alignment: Qt.AlignCenter
imageId: createdAccountId
......
......@@ -96,6 +96,8 @@ Rectangle {
MaterialButton {
id: newAccountButton
objectName: "newAccountButton"
Layout.alignment: Qt.AlignCenter
Layout.preferredWidth: preferredWidth
Layout.preferredHeight: preferredHeight
......@@ -122,6 +124,8 @@ Rectangle {
MaterialButton {
id: newRdvButton
objectName: "newRdvButton"
Layout.alignment: Qt.AlignCenter
Layout.preferredWidth: preferredWidth
Layout.preferredHeight: preferredHeight
......@@ -145,6 +149,8 @@ Rectangle {
MaterialButton {
id: fromDeviceButton
objectName: "fromDeviceButton"
Layout.alignment: Qt.AlignCenter
Layout.preferredWidth: preferredWidth
Layout.preferredHeight: preferredHeight
......@@ -168,6 +174,8 @@ Rectangle {
MaterialButton {
id: fromBackupButton
objectName: "fromBackupButton"
Layout.alignment: Qt.AlignCenter
Layout.preferredWidth: preferredWidth
Layout.preferredHeight: preferredHeight
......@@ -191,6 +199,8 @@ Rectangle {
MaterialButton {
id: showAdvancedButton
objectName: "showAdvancedButton"
property bool showAdvanced: false
Layout.alignment: Qt.AlignCenter
......@@ -225,6 +235,8 @@ Rectangle {
MaterialButton {
id: connectAccountManagerButton
objectName: "connectAccountManagerButton"
Layout.alignment: Qt.AlignCenter
Layout.preferredWidth: preferredWidth
Layout.preferredHeight: preferredHeight
......@@ -250,6 +262,8 @@ Rectangle {
MaterialButton {
id: newSIPAccountButton
objectName: "newSIPAccountButton"
Layout.alignment: Qt.AlignCenter
Layout.bottomMargin: JamiTheme.wizardViewPageBackButtonMargins
Layout.preferredWidth: preferredWidth
......@@ -279,6 +293,8 @@ Rectangle {
BackButton {
id: backButton
objectName: "welcomePageBackButton"
anchors.left: parent.left
anchors.top: parent.top
anchors.margins: JamiTheme.wizardViewPageBackButtonMargins
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment