on xenial help sign in
make sure appPreview is fully loaded before starting tests
6321533Michael Zanetti
tests/qmltests/Dash/Apps/tst_AppPreview.qml+4
@@ -112,6 +112,10 @@ Item {
112 name: "AppPreview"
112 name: "AppPreview"
113 when: windowShown
113 when: windowShown
114
114
115+ function init() {
116+ waitForRendering(appPreview)
117+ }
118+
115 function cleanup() {
119 function cleanup() {
116 root.calls = new Array();
120 root.calls = new Array();
117 sendPreviewSpy.clear();
121 sendPreviewSpy.clear();