@@ -50,6 +50,8 @@ Rectangle {
5050 shellLoader.active = true;
5151 }
5252
53+ property var shell: shellLoader.item ? shellLoader.item : null
54+
5355 Item {
5456 id: shellContainer
5557 anchors.left: root.left
@@ -302,7 +304,7 @@ Rectangle {
302304 }
303305
304306 Repeater {
305− id: appRepeater
307+ id: appCheckBoxRepeater
306308 model: ApplicationManager.availableApplications
307309 ApplicationCheckBox {
308310 appId: modelData
@@ -1707,11 +1709,8 @@ Rectangle {
17071709 function test_altBackTabNavigation() {
17081710 loadDesktopShellWithApps();
17091711
1710− print("findItem")
17111712 var spreadItem = findChild(shell, "spreadItem");
1712− print("starting verify")
17131713 verify(spreadItem !== null);
1714− print("verify done")
17151714
17161715 keyPress(Qt.Key_Alt)
17171716 keyClick(Qt.Key_Tab);
@@ -1769,21 +1768,24 @@ Rectangle {
17691768 function test_closeFromSpread() {
17701769 loadDesktopShellWithApps()
17711770
1772− var spreadRepeater = findInvisibleChild(shell, "spreadRepeater");
1773− verify(spreadRepeater !== null);
1771+ var appRepeater = findInvisibleChild(shell, "appRepeater");
1772+ verify(appRepeater !== null);
1773+
1774+ var spreadItem = findChild(shell, "spreadItem");
1775+ verify(spreadItem !== null);
17741776
17751777 keyPress(Qt.Key_Alt)
17761778 keyClick(Qt.Key_Tab);
17771779
17781780 var surfaceId = topLevelSurfaceList.idAt(2);
1779− var spreadDelegate2 = spreadRepeater.itemAt(2);
1781+ var spreadDelegate2 = appRepeater.itemAt(2);
17801782 var closeMouseArea = findChild(spreadDelegate2, "closeMouseArea");
17811783
17821784 // Move the mosue over tile 2 and verify the close button becomes visible
17831785 var x = 0;
17841786 var y = shell.height * .5;
17851787 mouseMove(shell, x, y)
1786− while (spreadRepeater.highlightedIndex !== 2 && x <= 4000) {
1788+ while (spreadItem.highlightedIndex !== 2 && x <= 4000) {
17871789 x+=10;
17881790 mouseMove(shell, x, y)
17891791 wait(0); // spin the loop so bindings get evaluated