@@ -364,10 +364,13 @@ Item {
365 function test_showPreviewCarousel() {
365 function test_showPreviewCarousel() {
366 tryCompareFunction(function() {
366 tryCompareFunction(function() {
367− var dashCategory1 = findChild(dashContent, "dashCategory1");
367+ var scope = findChild(dashContent, "MockScope1 loader");
368− if (dashCategory1 != null) {
368+ if (scope != null) {
369+ var dashCategory1 = findChild(scope, "dashCategory1");
370+ if (dashCategory1 != null) {
369− var tile = findChild(dashCategory1, "carouselDelegate1");
371+ var tile = findChild(dashCategory1, "carouselDelegate1");
370− return tile != null;
372+ return tile != null;
372 return false;
375 return false;
@@ -378,7 +381,8 @@ Item {
378 var previewListView = findChild(dashContent, "dashContentPreviewList");
381 var previewListView = findChild(dashContent, "dashContentPreviewList");
379 tryCompare(previewListView, "open", false);
382 tryCompare(previewListView, "open", false);
381− var dashCategory1 = findChild(dashContent, "dashCategory1");
384+ var scope = findChild(dashContent, "MockScope1 loader");
385+ var dashCategory1 = findChild(scope, "dashCategory1");
382 var tile = findChild(dashCategory1, "carouselDelegate1");
386 var tile = findChild(dashCategory1, "carouselDelegate1");
383 mouseClick(tile, tile.width / 2, tile.height / 2);
387 mouseClick(tile, tile.width / 2, tile.height / 2);
384 tryCompare(previewListView, "open", true);
388 tryCompare(previewListView, "open", true);