Improving diagnostics from fallback recents tests when phone is not unlocked
Failing earlier so that we don't get strange messages from the middle of the test. Bug: 187761685 Test: presubmit Flag: N/A Change-Id: I1e3c70623e6f907bcc6bd0486b6c75afecb610e3
This commit is contained in:
@@ -55,6 +55,7 @@ import com.android.launcher3.tapl.LauncherInstrumentation;
|
||||
import com.android.launcher3.tapl.OverviewTask;
|
||||
import com.android.launcher3.tapl.TestHelpers;
|
||||
import com.android.launcher3.testcomponent.TestCommandReceiver;
|
||||
import com.android.launcher3.ui.AbstractLauncherUiTest;
|
||||
import com.android.launcher3.util.Wait;
|
||||
import com.android.launcher3.util.rule.FailureWatcher;
|
||||
import com.android.launcher3.util.rule.SamplerRule;
|
||||
@@ -161,6 +162,7 @@ public class FallbackRecentsTest {
|
||||
@Before
|
||||
public void setUp() {
|
||||
mLauncher.onTestStart();
|
||||
AbstractLauncherUiTest.verifyKeyguardInvisible();
|
||||
}
|
||||
|
||||
@After
|
||||
|
||||
@@ -275,7 +275,8 @@ public abstract class AbstractLauncherUiTest {
|
||||
}
|
||||
}
|
||||
|
||||
private static void verifyKeyguardInvisible() {
|
||||
/** Fail if lock screen is present */
|
||||
public static void verifyKeyguardInvisible() {
|
||||
final boolean keyguardAlreadyVisible = sSeenKeyguard;
|
||||
|
||||
sSeenKeyguard = sSeenKeyguard
|
||||
|
||||
Reference in New Issue
Block a user