@@ -103,6 +103,7 @@ Item {
103 property real halfHeight: shell ? shell.height / 2 : 0
103 property real halfHeight: shell ? shell.height / 2 : 0
105 function init() {
105 function init() {
106+ tryCompare(shell, "enabled", true); // enabled by greeter when ready
106 swipeAwayGreeter();
107 swipeAwayGreeter();
107 AccountsService.demoEdges = false;
108 AccountsService.demoEdges = false;
108 AccountsService.demoEdges = true;
109 AccountsService.demoEdges = true;
@@ -154,6 +155,7 @@ Item {
155 function waitForPage(name) {
156 function waitForPage(name) {
156 tryCompareFunction(function() { return findChild(shell, name) !== null; }, true);
157 tryCompareFunction(function() { return findChild(shell, name) !== null; }, true);
158+ waitForRendering(findChild(shell, name));
157 var page = findChild(shell, name);
159 var page = findChild(shell, name);
158 tryCompare(page, "shown", true);
160 tryCompare(page, "shown", true);
159 tryCompare(page.showAnimation, "running", false);
161 tryCompare(page.showAnimation, "running", false);