@@ -164,13 +164,16 @@ Item {
164 return stack.currentPage;
164 return stack.currentPage;
167− function goToPage(name, skipSim, skipLocation) {
167+ function goToPage(name, skipSim, skipLocation, skipReporting) {
168 if (skipSim === undefined) {
168 if (skipSim === undefined) {
169 skipSim = false;
169 skipSim = false;
171 if (skipLocation === undefined) {
171 if (skipLocation === undefined) {
172 skipLocation = false;
172 skipLocation = false;
174+ if (skipReporting === undefined) {
175+ skipReporting = false;
175 var page = waitForPage("languagePage");
178 var page = waitForPage("languagePage");
176 if (name === page.objectName) return page;
179 if (name === page.objectName) return page;
@@ -197,9 +200,11 @@ Item {
197 tap(findChild(page, "forwardButton"));
200 tap(findChild(page, "forwardButton"));
203+ if (!skipReporting) {
200− page = waitForPage("reportingPage");
204+ page = waitForPage("reportingPage");
201− if (name === page.objectName) return page;
205+ if (name === page.objectName) return page;
202− tap(findChild(page, "forwardButton"));
206+ tap(findChild(page, "forwardButton"));
204 page = waitForPage("finishedPage");
209 page = waitForPage("finishedPage");
205 if (name === page.objectName) return page;
210 if (name === page.objectName) return page;
@@ -343,8 +348,6 @@ Item {
343 tap(findChild(page, "forwardButton"));
348 tap(findChild(page, "forwardButton"));
344 page = waitForPage("locationPage");
349 page = waitForPage("locationPage");
345 tap(findChild(page, "forwardButton"));
350 tap(findChild(page, "forwardButton"));
346− page = waitForPage("reportingPage");
347− tap(findChild(page, "forwardButton"));
348 page = waitForPage("finishedPage");
351 page = waitForPage("finishedPage");
349 tap(findChild(page, "forwardButton"));
352 tap(findChild(page, "forwardButton"));
@@ -396,8 +399,6 @@ Item {
396 tap(findChild(page, "forwardButton"));
399 tap(findChild(page, "forwardButton"));
397 page = waitForPage("locationPage");
400 page = waitForPage("locationPage");
398 tap(findChild(page, "forwardButton"));
401 tap(findChild(page, "forwardButton"));
399− page = waitForPage("reportingPage");
400− tap(findChild(page, "forwardButton"));
401 page = waitForPage("finishedPage");
402 page = waitForPage("finishedPage");
402 tap(findChild(page, "forwardButton"));
403 tap(findChild(page, "forwardButton"));
@@ -408,7 +409,7 @@ Item {
410 function test_passwdSwipe() {
411 function test_passwdSwipe() {
411− goToPage(null);
412+ goToPage(null, false, false, true);
413 tryCompare(setSecuritySpy, "count", 1);
414 tryCompare(setSecuritySpy, "count", 1);
414 compare(setSecuritySpy.signalArguments[0][0], "");
415 compare(setSecuritySpy.signalArguments[0][0], "");
@@ -418,12 +419,12 @@ Item {
419 function test_locationSkipNoPath() {
420 function test_locationSkipNoPath() {
420 AccountsService.hereLicensePath = "";
421 AccountsService.hereLicensePath = "";
421− goToPage("reportingPage", false, true);
422+ goToPage("finishedPage", false, true, true);
424 function test_locationSkipNoFiles() {
425 function test_locationSkipNoFiles() {
425 AccountsService.hereLicensePath = Qt.resolvedUrl("nolicenses");
426 AccountsService.hereLicensePath = Qt.resolvedUrl("nolicenses");
426− goToPage("reportingPage", false, true);
427+ goToPage("finishedPage", false, true, true);
429 function test_locationWaitOnPath() {
430 function test_locationWaitOnPath() {
@@ -440,7 +441,7 @@ Item {
440 compare(stack.currentPage.skipValid, false);
441 compare(stack.currentPage.skipValid, false);
442 AccountsService.hereLicensePath = "";
443 AccountsService.hereLicensePath = "";
443− waitForPage("reportingPage");
444+ waitForPage("finishedPage", false, false, true);
446 function test_locationGpsOnly() {
447 function test_locationGpsOnly() {