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

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

Disable tests that set up state unused in wm_state_refactor.

Bug: 278086361
Test: atest FromAodTransitionInteractorTest
Flag: com.android.systemui.keyguard_wm_state_refactor
Change-Id: I7c23974256168ffd95b832f5709ba1d82926edec
parent f9a27689
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -316,6 +316,7 @@ class FromAodTransitionInteractorTest : SysuiTestCase() {
        }

    @Test
    @DisableFlags(Flags.FLAG_KEYGUARD_WM_STATE_REFACTOR)
    fun testWakeAndUnlock_transitionsToGone_evenIfBouncerShows() =
        testScope.runTest {
            kosmos.fakeKeyguardRepository.setBiometricUnlockState(
@@ -338,6 +339,23 @@ class FromAodTransitionInteractorTest : SysuiTestCase() {
                .startedTransition(from = KeyguardState.AOD, to = KeyguardState.GONE)
        }

    @Test
    @EnableFlags(Flags.FLAG_KEYGUARD_WM_STATE_REFACTOR)
    fun testWakeAndUnlock_transitionsToGone_evenIfBouncerShows_wmStateRefactor() =
        testScope.runTest {
            kosmos.fakeKeyguardRepository.setBiometricUnlockState(
                BiometricUnlockMode.WAKE_AND_UNLOCK
            )
            runCurrent()
            bouncerRepository.setPrimaryShow(true)
            runCurrent()
            powerInteractor.setAwakeForTest()
            runCurrent()

            assertThat(transitionRepository)
                .startedTransition(from = KeyguardState.AOD, to = KeyguardState.GONE)
        }

    @Test
    fun testTransitionToOccluded_onWake() =
        testScope.runTest {
@@ -468,6 +486,7 @@ class FromAodTransitionInteractorTest : SysuiTestCase() {

    @Test
    @EnableFlags(FLAG_GLANCEABLE_HUB_V2)
    @DisableFlags(Flags.FLAG_KEYGUARD_WM_STATE_REFACTOR)
    fun testTransitionToOccluded_onWakeUpFromAod_whenGlanceableHubEnabled() =
        kosmos.runTest {
            setCommunalV2Available(true)