@@ -61,6 +61,7 @@ Rectangle {
6161 swipeToCloseEnabled: swipeToCloseCheckbox.checked
6262 closeable: closeableCheckbox.checked
6363 application: fakeApplication
64+ surface: fakeApplication && fakeApplication.surfaceList.count > 0 ? fakeApplication.surfaceList.get(0) : null
6465 shellOrientationAngle: shellOrientationAngleSelector.value
6566 shellOrientation: {
6667 switch (shellOrientationAngleSelector.value) {
@@ -258,7 +259,7 @@ Rectangle {
258259 function test_loadingLandscapeOnlyAppWhenShellInPortrait() {
259260 loadWithWeatherApp.clicked();
260261
261− var appWindow = findChild(spreadDelegate, "appWindow_ubuntu-weather-app");
262+ var appWindow = findChild(spreadDelegate, "appWindow");
262263 verify(appWindow);
263264
264265 // It must have landscape dimensions as it does not support portrait