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