on xenial help sign in
Fix DashContent tests.
af45629Michał Sawicz
tests/qmltests/Dash/tst_DashContent.qml+8−4
@@ -115,11 +115,12 @@ Item {
115 }
115 }
116
116
117 function test_show_header_on_list_movement() {
117 function test_show_header_on_list_movement() {
118+ var dashContentList = findChild(dashContent, "dashContentList");
119+ verify(dashContentList !== null);
118 var scope = findChild(dashContent, "MockScope1 loader");
120 var scope = findChild(dashContent, "MockScope1 loader");
119− verify(scope !== null);
121+ waitForRendering(scope);
120− var categoryListView = findChild(scope, "categoryListView");
121− verify(categoryListView !== null);
122
122
123+ var categoryListView = findChild(scope, "categoryListView");
123 waitForRendering(categoryListView);
124 waitForRendering(categoryListView);
124
125
125 categoryListView.contentY = units.gu(15);
126 categoryListView.contentY = units.gu(15);
@@ -134,8 +135,11 @@ Item {
134 function test_set_current_scope_reset() {
135 function test_set_current_scope_reset() {
135 var dashContentList = findChild(dashContent, "dashContentList");
136 var dashContentList = findChild(dashContent, "dashContentList");
136 verify(dashContentList != undefined);
137 verify(dashContentList != undefined);
138+ var scope = findChild(dashContent, "MockScope1 loader");
139+ waitForRendering(scope);
140+
137 var categoryListView = findChild(dashContentList, "categoryListView");
141 var categoryListView = findChild(dashContentList, "categoryListView");
138− verify(categoryListView != undefined);
142+ waitForRendering(categoryListView);
139
143
140 categoryListView.contentY = units.gu(10);
144 categoryListView.contentY = units.gu(10);
141
145