@@ -33,6 +33,8 @@ IndicatorTest {
34 Component.onCompleted: theme.name = "Ubuntu.Components.Themes.SuruDark"
34 Component.onCompleted: theme.name = "Ubuntu.Components.Themes.SuruDark"
37 target: mouseEmulation
39 target: mouseEmulation
38 property: "checked"
40 property: "checked"
@@ -470,7 +472,9 @@ IndicatorTest {
471 callManager.foregroundCall = phoneCall;
473 callManager.foregroundCall = phoneCall;
473− MirFocusController.focusedSurface = ApplicationManager.findApplication("unity8-dash").surfaceList.get(0);
475+ var dashApp = ApplicationManager.startApplication("unity8-dash");
476+ tryCompare(dashApp.surfaceList, "count", 1);
477+ dashApp.surfaceList.get(0).activate();
474 tryCompare(ApplicationManager, "focusedApplicationId", "unity8-dash");
478 tryCompare(ApplicationManager, "focusedApplicationId", "unity8-dash");
476 mouseClick(panel.indicators,
480 mouseClick(panel.indicators,
@@ -479,6 +483,9 @@ IndicatorTest {
480 compare(panel.indicators.shown, false);
484 compare(panel.indicators.shown, false);
481 verify(panel.indicators.fullyClosed);
485 verify(panel.indicators.fullyClosed);
488+ ApplicationManager.stopApplication("unity8-dash");
484 function test_openAndClosePanelWithMouseClicks() {
491 function test_openAndClosePanelWithMouseClicks() {