浏览代码

fixed failing unit test

Andres Aguilar 7 年前
父节点
当前提交
21ded978bb

+ 12
- 2
AndroidE2E/app/src/androidTest/java/com/reactnativenavigation/e2e/androide2e/OverlayTest.java 查看文件

@@ -7,9 +7,19 @@ import org.junit.Test;
7 7
 public class OverlayTest extends BaseTest {
8 8
 
9 9
 	@Test
10
-	public void testOverlayAlertAppear() throws Exception {
10
+	public void testOverlayInterAlertAppear() throws Exception {
11 11
 		elementByText("PUSH OPTIONS SCREEN").click();
12
-        elementByText("SHOW OVERLAY").click();
12
+        elementByText("SHOW OVERLAY INTER").click();
13
+		assertExists(By.text("Test view"));
14
+		elementByText("OK").click();
15
+		assertExists(By.text("Overlay disappeared"));
16
+        elementByText("OK").click();
17
+	}
18
+
19
+	@Test
20
+	public void testOverlayNotInterAlertAppear() throws Exception {
21
+		elementByText("PUSH OPTIONS SCREEN").click();
22
+        elementByText("SHOW TOUCH THROUGH OVERLAY NOTINTER").click();
13 23
 		assertExists(By.text("Test view"));
14 24
 		elementByText("OK").click();
15 25
 		assertExists(By.text("Overlay disappeared"));