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

Commit 1121f8b5 authored by David Saff's avatar David Saff
Browse files

Assert keyguard gone at beginning and end of PortraitLandscapeRunner

Should help distinguish if we have tests leaving things in a bad state,
or the intervening infrastructure.

Bug: 285935417
Change-Id: I5569472a9804cb21ee0646c72decb5f51be9ab01
parent e96d30bd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -44,7 +44,9 @@ public class PortraitLandscapeRunner implements TestRule {
            @Override
            public void evaluate() throws Throwable {
                try {
                    // we expect to begin unlocked...
                    AbstractLauncherUiTest.verifyKeyguardInvisible();

                    mTest.mDevice.pressHome();
                    mTest.waitForLauncherCondition("Launcher activity wasn't created",
                            launcher -> launcher != null);
@@ -67,6 +69,9 @@ public class PortraitLandscapeRunner implements TestRule {
                        }
                    });
                    mTest.mLauncher.setExpectedRotation(Surface.ROTATION_0);

                    // and end unlocked...
                    AbstractLauncherUiTest.verifyKeyguardInvisible();
                }
            }