on xenial help sign in
Wait for stuff to settle
3bef274Albert Astals
tests/qmltests/Dash/tst_DashContent.qml+5
@@ -71,6 +71,11 @@ Item {
71 scopeLoadedSpy.clear();
71 scopeLoadedSpy.clear();
72 scopesModel.load();
72 scopesModel.load();
73 tryCompare(scopeLoadedSpy, "count", 6);
73 tryCompare(scopeLoadedSpy, "count", 6);
74+ tryCompare(scopesModel, "loaded", true);
75+ tryCompareFunction(function() {
76+ var mockScope1Loader = findChild(shell, "MockScope1 loader");
77+ return mockScope1Loader && mockScope1Loader.item != null; },
78+ true, 15000);
74 }
79 }
75
80
76 function init() {
81 function init() {