Browse Source

android: cant test splasview due to timer. will test it with unit tests

Daniel Zlotin 7 years ago
parent
commit
671270701f

+ 4
- 11
AndroidE2E/app/src/androidTest/java/com/reactnativenavigation/e2e/androide2e/ApplicationLifecycleTest.java View File

45
     }
45
     }
46
 
46
 
47
     @Test
47
     @Test
48
-    public void _2_showSplash() throws Exception {
49
-        launchTheApp();
50
-        assertExists(By.desc("NavigationSplashView"));
51
-        assertMainShown();
52
-    }
53
-
54
-    @Test
55
-    public void _3_relaunchFromBackground() throws Exception {
48
+    public void _2_relaunchFromBackground() throws Exception {
56
         launchTheApp();
49
         launchTheApp();
57
         assertMainShown();
50
         assertMainShown();
58
         push();
51
         push();
66
     }
59
     }
67
 
60
 
68
     @Test
61
     @Test
69
-    public void _4_relaunchAfterClose() throws Exception {
62
+    public void _3_relaunchAfterClose() throws Exception {
70
         launchTheApp();
63
         launchTheApp();
71
         push();
64
         push();
72
         assertPushedScreenShown();
65
         assertPushedScreenShown();
78
     }
71
     }
79
 
72
 
80
     @Test
73
     @Test
81
-    public void _5_deviceOrientationDoesNotDestroyActivity() throws Exception {
74
+    public void _4_deviceOrientationDoesNotDestroyActivity() throws Exception {
82
         launchTheApp();
75
         launchTheApp();
83
         push();
76
         push();
84
         assertPushedScreenShown();
77
         assertPushedScreenShown();
90
     }
83
     }
91
 
84
 
92
     @Test
85
     @Test
93
-    public void _6_relaunchAfterActivityKilledBySystem() throws Exception {
86
+    public void _5_relaunchAfterActivityKilledBySystem() throws Exception {
94
         launchTheApp();
87
         launchTheApp();
95
         push();
88
         push();
96
         assertPushedScreenShown();
89
         assertPushedScreenShown();