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

Commit 9a94452d authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Verifying that keyguard is invisible before pressing Home in PortraitLandscapeRunner

Bug: 285935417
Test: presubmit
Flag: N/A
Change-Id: I8c525b99e7dc434f0b68aad59a18908f4253b29b
parent 53eb01bc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -370,7 +370,8 @@ public abstract class AbstractLauncherUiTest {
        Assert.assertTrue("Setup wizard is still visible", wizardDismissed);
    }

    private static void verifyKeyguardInvisible() {
    /** Asserts that keyguard is not visible */
    public static void verifyKeyguardInvisible() {
        final boolean keyguardAlreadyVisible = sSeenKeyguard;

        sSeenKeyguard = sSeenKeyguard
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ public class PortraitLandscapeRunner implements TestRule {
            @Override
            public void evaluate() throws Throwable {
                try {
                    AbstractLauncherUiTest.verifyKeyguardInvisible();
                    mTest.mDevice.pressHome();
                    mTest.waitForLauncherCondition("Launcher activity wasn't created",
                            launcher -> launcher != null);