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

Commit def4f6c4 authored by David Saff's avatar David Saff Committed by Android (Google) Code Review
Browse files

Merge "lockDevice should actually lock the device" into main

parents c7c84eca fcca67bf
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -327,6 +327,16 @@ class SceneFrameworkIntegrationTest : SysuiTestCase() {
            assertCurrentScene(Scenes.Lockscreen)
        }

    @Test
    fun lockDeviceLocksDevice() =
        testScope.runTest {
            unlockDevice()
            assertCurrentScene(Scenes.Gone)

            lockDevice()
            assertCurrentScene(Scenes.Lockscreen)
        }

    @Test
    fun deviceGoesToSleep_switchesToLockscreen() =
        testScope.runTest {
@@ -616,7 +626,7 @@ class SceneFrameworkIntegrationTest : SysuiTestCase() {
        assertWithMessage("The authentication method of $authMethod is not secure, cannot lock!")
            .that(authMethod.isSecure)
            .isTrue()

        kosmos.sceneInteractor.changeScene(Scenes.Lockscreen, "")
        runCurrent()
    }