on xenial help sign in
Fix tests
commit9e9d0c891d90a9f5d5d7ef08ede1213a533bcbe0 authorMichael Terry <michael.terry@canonical.com> dateWed 7 Jan 2015, 09:50 (12 years ago) parentefc5d22
1 file changed+2
tests/qmltests/Tutorial/tst_Tutorial.qml+2
tests/qmltests/Tutorial/tst_Tutorial.qml+2
@@ -103,6 +103,7 @@ Item {
103103 property real halfHeight: shell ? shell.height / 2 : 0
104104
105105 function init() {
106+ tryCompare(shell, "enabled", true); // enabled by greeter when ready
106107 swipeAwayGreeter();
107108 AccountsService.demoEdges = false;
108109 AccountsService.demoEdges = true;
@@ -154,6 +155,7 @@ Item {
154155
155156 function waitForPage(name) {
156157 tryCompareFunction(function() { return findChild(shell, name) !== null; }, true);
158+ waitForRendering(findChild(shell, name));
157159 var page = findChild(shell, name);
158160 tryCompare(page, "shown", true);
159161 tryCompare(page.showAnimation, "running", false);