on xenial help sign in
Merge
commitfe016437d46e00ca3c65e6f722ea5322c2029a3a authorAlbert Astals <albert.astals@canonical.com> dateThu 7 Aug 2014, 10:26 (12 years ago) parent78b1fefe9c4786
1 file changed+4−2
tests/qmltests/Dash/tst_DashContent.qml+4−2
tests/qmltests/Dash/tst_DashContent.qml+4−2
@@ -270,8 +270,10 @@ Item {
270270 }
271271
272272 function test_departments() {
273− var dashDepartments = findChild(dashContent, "dashDepartments");
274− compare(dashDepartments.visible, true);
273+ var dashContentList = findChild(dashContent, "dashContentList");
274+ tryCompareFunction(function() { return findChild(dashContentList.currentItem, "dashDepartments") != null; }, true);
275+ var dashDepartments = findChild(dashContentList.currentItem, "dashDepartments");
276+ tryCompare(dashDepartments, "visible", true);
275277 compare(dashDepartments.showList, false);
276278 waitForRendering(dashDepartments);
277279 mouseClick(dashDepartments, 0, 0);