on xenial help sign in
Make sure the loader has loaded the thing
commita0d02ee7616dd3e85a91a13dfacae7e62cf9b70b authorAlbert Astals <albert.astals@canonical.com> dateWed 11 Dec 2013, 10:34 (13 years ago) parentcb9f4fe
1 file changed+2
tests/qmltests/Dash/tst_GenericScopeView.qml+2
tests/qmltests/Dash/tst_GenericScopeView.qml+2
@@ -230,6 +230,8 @@ Item {
230230 function test_show_spinner() {
231231 openPreview();
232232 var previewLoader = findChild(previewListView, "previewLoader0");
233+ tryCompare(previewLoader, "progress", 1.0);
234+ tryCompareFunction(function() { return previewLoader.item != undefined; }, true);
233235
234236 previewLoader.item.showProcessingAction = true;
235237 var waitingForAction = findChild(previewListView, "waitingForActionMouseArea");