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

Commit c270c6d0 authored by Josh Tsuji's avatar Josh Tsuji
Browse files

Transition to DREAMING at the beginning of testTransitionToGlanceableHubOnWake.

This fails with keyguard_wm_state_refactor due to better guarding of keyguard state before starting transitions.

Bug: 278086361
Test: atest FromDreamingTransitionInteractorTest
Flag: com.android.systemui.keyguard_wm_state_refactor
Change-Id: Id9957400dfd5de5e0eb25cb32fa02528218f4e90
parent e048c46e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -198,6 +198,13 @@ class FromDreamingTransitionInteractorTest(flags: FlagsParameterization?) : Sysu
    @DisableFlags(Flags.FLAG_SCENE_CONTAINER)
    fun testTransitionToGlanceableHubOnWake() =
        testScope.runTest {
            transitionRepository.sendTransitionSteps(
                from = KeyguardState.LOCKSCREEN,
                to = KeyguardState.DREAMING,
                testScope,
            )
            reset(transitionRepository)

            whenever(kosmos.dreamManager.canStartDreaming(anyBoolean())).thenReturn(true)
            kosmos.setCommunalAvailable(true)
            runCurrent()