on xenial help sign in
account page click-thru
commit78672847c3ea175701fd79afffcee475e1f6fae6 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 4 Dec 2015, 14:32 (11 years ago) parent8b2e247
3 files changed+13−2
qml/Wizard/Pages/60-account.qml+3 tests/mocks/Ubuntu/SystemSettings/LanguagePlugin/MockLanguagePlugin.qml+1−1 tests/qmltests/Wizard/tst_Wizard.qml+9−1
qml/Wizard/Pages/60-account.qml+3
@@ -85,6 +85,7 @@ LocalComponents.Page {
8585
8686 LocalComponents.WizardTextField {
8787 id: nameInput
88+ objectName: "nameInput"
8889 anchors.left: parent.left
8990 anchors.right: parent.right
9091 anchors.top: nameLabel.bottom
@@ -112,6 +113,7 @@ LocalComponents.Page {
112113
113114 LocalComponents.WizardTextField {
114115 id: passInput
116+ objectName: "passInput"
115117 anchors.left: parent.left
116118 anchors.right: parent.right
117119 anchors.top: passLabel.bottom
@@ -152,6 +154,7 @@ LocalComponents.Page {
152154
153155 LocalComponents.WizardTextField {
154156 id: pass2Input
157+ objectName: "pass2Input"
155158 anchors.left: parent.left
156159 anchors.right: parent.right
157160 anchors.top: pass2Label.bottom
tests/mocks/Ubuntu/SystemSettings/LanguagePlugin/MockLanguagePlugin.qml+1−1
@@ -17,7 +17,7 @@
1717import QtQuick 2.4
1818
1919Item {
20− property var languageNames: ["English", "French", "Spanish"]
20+ property var languageNames: ["English (United States)", "French (France)", "Spanish (Spain)"]
2121 property var languageCodes: ["en_US", "fr_FR", "es_ES"]
2222 property int currentLanguage: 0
2323}
tests/qmltests/Wizard/tst_Wizard.qml+9−1
@@ -197,7 +197,15 @@ Item {
197197 page.selectedTimeZone = "Pacific/Honolulu";
198198 tap(findChild(page, "forwardButton"));
199199
200− // TODO account page
200+ page = waitForPage("accountPage");
201+ if (name === page.objectName) return page;
202+ tap(findChild(page, "nameInput"));
203+ typeString("foobar");
204+ tap(findChild(page, "passInput"));
205+ typeString("12345678");
206+ tap(findChild(page, "pass2Input"));
207+ typeString("12345678");
208+ tap(findChild(page, "forwardButton"));
201209
202210 page = waitForPage("passwdPage");
203211 if (name === page.objectName) return page;