Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7be1ce91 authored by Toshiki Kikuchi's avatar Toshiki Kikuchi
Browse files

Wait for transitions in cuj10p/e

This is a follow up of I7e7dc3b2f05bd8bf9b87fb7c5d6f997a0a6be4cb.
Disconnecting an external display also triggers a transition.

Flag: EXEMPT - test stabilization
Bug: 442453305
Bug: 442453123
Test: atest WMShellSmokeTestsDesktopMode
Change-Id: I7305d131c414b12e4cfd6b81ab895badc5b14435
parent 620228d5
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -505,11 +505,15 @@ class ConnectedDisplayCujSmokeTests {
        launchAppFromTaskbar(externalDisplayId, browserApp)
        verifyActivityState(browserApp, WINDOWING_MODE_FREEFORM, externalDisplayId, visible = true)

        // Verify connecting a display doesn't crash.
        // Verify disconnecting a display doesn't crash.
        connectedDisplayRule.setupTestDisplays(0)
        // Disconnecting the external display may triggers transitions (e.g., display windowing mode
        // switch).
        wmHelper.StateSyncBuilder().withAppTransitionIdle(DEFAULT_DISPLAY).waitForAndVerify()
        instrumentation.waitForIdleSync()

        // Verify disconnecting the display doesn't crash.
        connectedDisplayRule.setupTestDisplay()
        // Verify connecting the display doesn't crash.
        setupTestDisplayAndWaitForTransitions()
    }

    // Extended: Device state should be recoverable when connecting and disconnecting an