|
|
@@ -8,45 +8,46 @@ import org.junit.Test;
|
|
8
|
8
|
public class TopLevelApiTest extends BaseTest {
|
|
9
|
9
|
|
|
10
|
10
|
@Test
|
|
|
11
|
+ @Ignore
|
|
11
|
12
|
public void switchToTabBasedApp() throws Exception {
|
|
12
|
|
- launchTheApp();
|
|
13
|
|
- assertMainShown();
|
|
14
|
|
- elementByText("SWITCH TO TAB BASED APP").click();
|
|
15
|
|
- assertExists(By.text("This is tab 1"));
|
|
16
|
|
- assertExists(By.text("Hello from a function!"));
|
|
|
13
|
+ launchTheApp();
|
|
|
14
|
+ assertMainShown();
|
|
|
15
|
+ elementByText("SWITCH TO TAB BASED APP").click();
|
|
|
16
|
+ assertExists(By.text("This is tab 1"));
|
|
|
17
|
+ assertExists(By.text("Hello from a function!"));
|
|
17
|
18
|
}
|
|
18
|
19
|
|
|
19
|
|
- @Test
|
|
20
|
|
- public void switchToTabsWithSideMenu() throws Exception {
|
|
21
|
|
- launchTheApp();
|
|
22
|
|
- assertMainShown();
|
|
23
|
|
- elementByText("SWITCH TO APP WITH SIDE MENUS").click();
|
|
24
|
|
- assertExists(By.textStartsWith("This is a side menu center screen tab 1"));
|
|
25
|
|
- swipeRight();
|
|
26
|
|
- assertExists(By.text("This is a left side menu screen"));
|
|
27
|
|
- }
|
|
|
20
|
+ @Test
|
|
|
21
|
+ public void switchToTabsWithSideMenu() throws Exception {
|
|
|
22
|
+ launchTheApp();
|
|
|
23
|
+ assertMainShown();
|
|
|
24
|
+ elementByText("SWITCH TO APP WITH SIDE MENUS").click();
|
|
|
25
|
+ assertExists(By.textStartsWith("This is a side menu center screen tab 1"));
|
|
|
26
|
+ swipeRight();
|
|
|
27
|
+ assertExists(By.text("This is a left side menu screen"));
|
|
|
28
|
+ }
|
|
28
|
29
|
|
|
29
|
|
- @Test
|
|
30
|
|
- @Ignore
|
|
31
|
|
- public void screenLifecycle() throws Exception {
|
|
32
|
|
- launchTheApp();
|
|
33
|
|
- assertMainShown();
|
|
34
|
|
- elementByText("PUSH LIFECYCLE SCREEN").click();
|
|
35
|
|
- elementByText("onStart!");
|
|
36
|
|
- elementByText("Push to test onStop").click();
|
|
37
|
|
- elementByText("Alert");
|
|
38
|
|
- elementByText("onStop").click();
|
|
39
|
|
- }
|
|
|
30
|
+ @Test
|
|
|
31
|
+ @Ignore
|
|
|
32
|
+ public void screenLifecycle() throws Exception {
|
|
|
33
|
+ launchTheApp();
|
|
|
34
|
+ assertMainShown();
|
|
|
35
|
+ elementByText("PUSH LIFECYCLE SCREEN").click();
|
|
|
36
|
+ elementByText("onStart!");
|
|
|
37
|
+ elementByText("Push to test onStop").click();
|
|
|
38
|
+ elementByText("Alert");
|
|
|
39
|
+ elementByText("onStop").click();
|
|
|
40
|
+ }
|
|
40
|
41
|
|
|
41
|
|
- @Test
|
|
42
|
|
- @Ignore
|
|
43
|
|
- public void unmountIsCalledOnPop() throws Exception {
|
|
44
|
|
- launchTheApp();
|
|
45
|
|
- assertMainShown();
|
|
46
|
|
- elementByText("Push lifecycle screen").click();
|
|
47
|
|
- elementByText("onStart!");
|
|
48
|
|
- elementByText("BACK").click();
|
|
49
|
|
- elementByText("onStop");
|
|
50
|
|
- elementByText("componentWillUnmount");
|
|
51
|
|
- }
|
|
|
42
|
+ @Test
|
|
|
43
|
+ @Ignore
|
|
|
44
|
+ public void unmountIsCalledOnPop() throws Exception {
|
|
|
45
|
+ launchTheApp();
|
|
|
46
|
+ assertMainShown();
|
|
|
47
|
+ elementByText("Push lifecycle screen").click();
|
|
|
48
|
+ elementByText("onStart!");
|
|
|
49
|
+ elementByText("BACK").click();
|
|
|
50
|
+ elementByText("onStop");
|
|
|
51
|
+ elementByText("componentWillUnmount");
|
|
|
52
|
+ }
|
|
52
|
53
|
}
|