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

Commit fcca67bf authored by David Saff's avatar David Saff
Browse files

lockDevice should actually lock the device

Bug: 360143420
Test: local in studio, presubmit
Flag: TEST_ONLY
Change-Id: Ic0d42bedd610e3b9ce7ca8803f86b031adf70fb3
parent 23c18de8
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()
    }