Waiting for the state of views to settle after orientation change
Presumably, we currently have flakes when immediately after orientation change, we check for the presence of certain views, and they are still not present. Test: presubmit Bug: 181057446 Change-Id: I6dbcb757a47c19728d4096283da6710f6dd5aa02
This commit is contained in:
1 parent
b0bff050f2
commit
5f21f104f0
2 files changed
+27
-14
No files matched your search
@@ -200,8 +200,8 @@ public class NavigationModeSwitchRule implements TestRule {
|
||||
() -> launcher.getNavigationModel() == expectedMode, WAIT_TIME_MS, launcher);
|
||||
|
||||
Wait.atMost(() -> "Switching nav mode: "
|
||||
+ launcher.getNavigationModeMismatchError(),
|
||||
() -> launcher.getNavigationModeMismatchError() == null,
|
||||
+ launcher.getNavigationModeMismatchError(false),
|
||||
() -> launcher.getNavigationModeMismatchError(false) == null,
|
||||
WAIT_TIME_MS, launcher);
|
||||
AbstractLauncherUiTest.checkDetectedLeaks(launcher);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user