|
@@ -1,26 +1,20 @@
|
1
|
1
|
package com.reactnativenavigation.e2e.androide2e;
|
2
|
2
|
|
3
|
|
-import android.support.test.uiautomator.By;
|
|
3
|
+public class OverlayTest {//extends BaseTest {
|
4
|
4
|
|
5
|
|
-import org.junit.Test;
|
6
|
|
-
|
7
|
|
-import static org.assertj.core.api.Java6Assertions.assertThat;
|
8
|
|
-
|
9
|
|
-public class OverlayTest extends BaseTest {
|
10
|
|
-
|
11
|
|
- @Test
|
12
|
|
- public void testOverlayAlertAppear() throws Exception {
|
13
|
|
- elementByText("PUSH OPTIONS SCREEN").click();
|
14
|
|
- elementByText("SHOW CUSTOM ALERT").click();
|
15
|
|
- assertExists(By.text("Test view"));
|
16
|
|
- elementByText("OK").click();
|
17
|
|
- assertExists(By.text("Static Title"));
|
18
|
|
- }
|
19
|
|
-
|
20
|
|
- @Test
|
21
|
|
- public void testSnackbarAppear() throws Exception {
|
22
|
|
- elementByText("PUSH OPTIONS SCREEN").click();
|
23
|
|
- elementByText("SHOW SNACKBAR").click();
|
24
|
|
- assertExists(By.text("Test!"));
|
25
|
|
- }
|
|
5
|
+// @Test
|
|
6
|
+// public void testOverlayAlertAppear() throws Exception {
|
|
7
|
+// elementByText("PUSH OPTIONS SCREEN").click();
|
|
8
|
+// elementByText("SHOW CUSTOM ALERT").click();
|
|
9
|
+// assertExists(By.text("Test view"));
|
|
10
|
+// elementByText("OK").click();
|
|
11
|
+// assertExists(By.text("Static Title"));
|
|
12
|
+// }
|
|
13
|
+//
|
|
14
|
+// @Test
|
|
15
|
+// public void testSnackbarAppear() throws Exception {
|
|
16
|
+// elementByText("PUSH OPTIONS SCREEN").click();
|
|
17
|
+// elementByText("SHOW SNACKBAR").click();
|
|
18
|
+// assertExists(By.text("Test!"));
|
|
19
|
+// }
|
26
|
20
|
}
|