on xenial help sign in
Fix new test
commiteb064468f968d071419b192aa1e73932ec77ec7d authorMichael Terry <michael.terry@canonical.com> dateWed 25 May 2016, 16:54 (10 years ago) parent6d2606b
1 file changed+3−2
tests/qmltests/tst_Shell.qml+3−2
tests/qmltests/tst_Shell.qml+3−2
@@ -2435,12 +2435,13 @@ Rectangle {
24352435 var panel = findChild(shell, "windowControlArea");
24362436 verify(panel);
24372437
2438+ var appSurfaceId = topLevelSurfaceList.nextId;
24382439 var app = ApplicationManager.startApplication("dialer-app")
2439− waitUntilAppWindowIsFullyLoaded(app);
2440+ waitUntilAppWindowIsFullyLoaded(appSurfaceId);
24402441
24412442 // start dialer, maximize it
24422443 var appContainer = findChild(shell, "appContainer");
2443− var appDelegate = findChild(appContainer, "appDelegate_dialer-app");
2444+ var appDelegate = findChild(appContainer, "appDelegate_" + appSurfaceId);
24442445 verify(appDelegate);
24452446 appDelegate.maximize();
24462447 tryCompare(appDelegate, "state", "maximized");