@@ -157,13 +157,16 @@ Item {
157 return stack.currentPage;
157 return stack.currentPage;
160− function goToPage(name, skipSim, skipLocation) {
160+ function goToPage(name, skipSim, skipLocation, skipReporting) {
161 if (skipSim === undefined) {
161 if (skipSim === undefined) {
162 skipSim = false;
162 skipSim = false;
164 if (skipLocation === undefined) {
164 if (skipLocation === undefined) {
165 skipLocation = false;
165 skipLocation = false;
167+ if (skipReporting === undefined) {
168+ skipReporting = false;
168 var page = waitForPage("languagePage");
171 var page = waitForPage("languagePage");
169 if (name === page.objectName) return page;
172 if (name === page.objectName) return page;
@@ -190,9 +193,11 @@ Item {
190 tap(findChild(page, "forwardButton"));
193 tap(findChild(page, "forwardButton"));
196+ if (!skipReporting) {
193− page = waitForPage("reportingPage");
197+ page = waitForPage("reportingPage");
194− if (name === page.objectName) return page;
198+ if (name === page.objectName) return page;
195− tap(findChild(page, "forwardButton"));
199+ tap(findChild(page, "forwardButton"));
197 page = waitForPage("finishedPage");
202 page = waitForPage("finishedPage");
198 if (name === page.objectName) return page;
203 if (name === page.objectName) return page;
@@ -336,8 +341,6 @@ Item {
336 tap(findChild(page, "forwardButton"));
341 tap(findChild(page, "forwardButton"));
337 page = waitForPage("locationPage");
342 page = waitForPage("locationPage");
338 tap(findChild(page, "forwardButton"));
343 tap(findChild(page, "forwardButton"));
339− page = waitForPage("reportingPage");
340− tap(findChild(page, "forwardButton"));
341 page = waitForPage("finishedPage");
344 page = waitForPage("finishedPage");
342 tap(findChild(page, "forwardButton"));
345 tap(findChild(page, "forwardButton"));
@@ -389,8 +392,6 @@ Item {
389 tap(findChild(page, "forwardButton"));
392 tap(findChild(page, "forwardButton"));
390 page = waitForPage("locationPage");
393 page = waitForPage("locationPage");
391 tap(findChild(page, "forwardButton"));
394 tap(findChild(page, "forwardButton"));
392− page = waitForPage("reportingPage");
393− tap(findChild(page, "forwardButton"));
394 page = waitForPage("finishedPage");
395 page = waitForPage("finishedPage");
395 tap(findChild(page, "forwardButton"));
396 tap(findChild(page, "forwardButton"));
@@ -401,7 +402,7 @@ Item {
403 function test_passwdSwipe() {
404 function test_passwdSwipe() {
404− goToPage(null);
405+ goToPage(null, false, false, true);
406 tryCompare(setSecuritySpy, "count", 1);
407 tryCompare(setSecuritySpy, "count", 1);
407 compare(setSecuritySpy.signalArguments[0][0], "");
408 compare(setSecuritySpy.signalArguments[0][0], "");
@@ -411,12 +412,12 @@ Item {
412 function test_locationSkipNoPath() {
413 function test_locationSkipNoPath() {
413 AccountsService.hereLicensePath = "";
414 AccountsService.hereLicensePath = "";
414− goToPage("reportingPage", false, true);
415+ goToPage("finishedPage", false, true, true);
417 function test_locationSkipNoFiles() {
418 function test_locationSkipNoFiles() {
418 AccountsService.hereLicensePath = Qt.resolvedUrl("nolicenses");
419 AccountsService.hereLicensePath = Qt.resolvedUrl("nolicenses");
419− goToPage("reportingPage", false, true);
420+ goToPage("finishedPage", false, true, true);
422 function test_locationWaitOnPath() {
423 function test_locationWaitOnPath() {
@@ -433,7 +434,7 @@ Item {
433 compare(stack.currentPage.skipValid, false);
434 compare(stack.currentPage.skipValid, false);
435 AccountsService.hereLicensePath = "";
436 AccountsService.hereLicensePath = "";
436− waitForPage("reportingPage");
437+ waitForPage("finishedPage", false, false, true);
439 function test_locationGpsOnly() {
440 function test_locationGpsOnly() {