on xenial help sign in
Fix DashContent tests.
commitaf45629c4b9099fcd9b35f21a54ef69755159ef4 authorMichał Sawicz <michal.sawicz@canonical.com> dateFri 11 Jul 2014, 14:09 (12 years ago) parent7995171
1 file changed+8−4
tests/qmltests/Dash/tst_DashContent.qml+8−4
tests/qmltests/Dash/tst_DashContent.qml+8−4
@@ -115,11 +115,12 @@ Item {
115115 }
116116
117117 function test_show_header_on_list_movement() {
118+ var dashContentList = findChild(dashContent, "dashContentList");
119+ verify(dashContentList !== null);
118120 var scope = findChild(dashContent, "MockScope1 loader");
119− verify(scope !== null);
120− var categoryListView = findChild(scope, "categoryListView");
121− verify(categoryListView !== null);
121+ waitForRendering(scope);
122122
123+ var categoryListView = findChild(scope, "categoryListView");
123124 waitForRendering(categoryListView);
124125
125126 categoryListView.contentY = units.gu(15);
@@ -134,8 +135,11 @@ Item {
134135 function test_set_current_scope_reset() {
135136 var dashContentList = findChild(dashContent, "dashContentList");
136137 verify(dashContentList != undefined);
138+ var scope = findChild(dashContent, "MockScope1 loader");
139+ waitForRendering(scope);
140+
137141 var categoryListView = findChild(dashContentList, "categoryListView");
138− verify(categoryListView != undefined);
142+ waitForRendering(categoryListView);
139143
140144 categoryListView.contentY = units.gu(10);
141145