@@ -182,6 +182,7 @@ Rectangle {
182182 when: windowShown
183183
184184 property Item header: findChild(card, "cardHeader")
185+ property Item headerLoader: findChild(card, "cardHeaderLoader")
185186 property Item title: findChild(header, "titleLabel")
186187 property Item art: findChild(card, "artShape")
187188 property Item artImage: findChild(card, "artImage")
@@ -245,8 +246,8 @@ Rectangle {
245246 { tag: "Wide", width: units.gu(18.5), aspect: 0.5, index: 0 },
246247 { tag: "Horizontal", width: units.gu(38), index: 5 },
247248 // Make sure card ends with header when there's no summary
248− { tag: "NoSummary", height: function() { return header.y + header.height }, index: 6 },
249− { tag: "HorizontalNoSummary", height: function() { return header.height }, card_layout: "horizontal", index: 6 },
249+ { tag: "NoSummary", height: function() { return headerLoader.y + headerLoader.height }, index: 6 },
250+ { tag: "HorizontalNoSummary", height: function() { return headerLoader.height }, card_layout: "horizontal", index: 6 },
250251 ]
251252 }
252253
@@ -289,7 +290,7 @@ Rectangle {
289290 { tag: "Fit", height: units.gu(38), size: "large", width: units.gu(19), index: 4 },
290291 { tag: "VerticalWidth", width: function() { return header.width }, index: 0 },
291292 { tag: "HorizontalHeight", height: function() { return header.height }, index: 5 },
292− { tag: "HorizontalWidth", width: function() { return header.x }, index: 5 },
293+ { tag: "HorizontalWidth", width: function() { return headerLoader.x }, index: 5 },
293294 ]
294295 }
295296
@@ -333,7 +334,7 @@ Rectangle {
333334 function test_art_layout(data) {
334335 selector.selectedIndex = data.index;
335336
336− tryCompare(testCase.header, "x", data.left());
337+ tryCompare(testCase.headerLoader, "x", data.left());
337338 }
338339
339340 function test_header_layout_data() {
@@ -350,13 +351,13 @@ Rectangle {
350351 function test_header_layout(data) {
351352 selector.selectedIndex = data.index;
352353
353− tryCompareFunction(function() { return testCase.header.y === data.top() }, true);
354− tryCompareFunction(function() { return testCase.header.x === data.left() }, true);
354+ tryCompareFunction(function() { return testCase.headerLoader.y === data.top() }, true);
355+ tryCompareFunction(function() { return testCase.headerLoader.x === data.left() }, true);
355356 }
356357
357358 function test_summary_layout_data() {
358359 return [
359− { tag: "With header", top: function() { return header.y + header.height }, index: 0 },
360+ { tag: "With header", top: function() { return headerLoader.y + headerLoader.height }, index: 0 },
360361 { tag: "Without header", top: function() { return art.y + art.height }, index: 7 },
361362 ]
362363 }