on xenial help sign in
This should help with the DashContent::test_showPreviewCarousel failure in CI
1f535fdAlbert Astals
tests/qmltests/Dash/tst_DashContent.qml+10
@@ -362,6 +362,16 @@ Item {
362 }
362 }
363
363
364 function test_showPreviewCarousel() {
364 function test_showPreviewCarousel() {
365+ tryCompareFunction(function() {
366+ var dashCategory1 = findChild(dashContent, "dashCategory1");
367+ if (dashCategory1 != null) {
368+ var tile = findChild(dashCategory1, "carouselDelegate1");
369+ return tile != null;
370+ }
371+ return false;
372+ },
373+ true);
374+
365 tryCompare(scopeLoadedSpy, "count", 4);
375 tryCompare(scopeLoadedSpy, "count", 4);
366
376
367 var previewListView = findChild(dashContent, "dashContentPreviewList");
377 var previewListView = findChild(dashContent, "dashContentPreviewList");