Daniel Zlotin 7 years ago
parent
commit
ef0ccb3936

+ 1
- 1
AndroidE2E/app/src/androidTest/java/com/reactnativenavigation/e2e/androide2e/BaseTest.java View File

48
 	}
48
 	}
49
 
49
 
50
 	public void acceptOverlayPermissionIfNeeded() throws Exception {
50
 	public void acceptOverlayPermissionIfNeeded() throws Exception {
51
-		if (elementByText("Draw over other apps").exists()) {
51
+		if (elementByText("Draw over other apps").waitForExists(100)) {
52
 			if (!elementByText("Playground").exists()) {
52
 			if (!elementByText("Playground").exists()) {
53
 				scrollToText("Playground");
53
 				scrollToText("Playground");
54
 			}
54
 			}