Browse Source

fixing nvm

Daniel Zlotin 7 years ago
parent
commit
585119c8b6

+ 1
- 1
.travis.yml View File

25
   - rm -rf $HOME/.gradle/caches/*/plugin-resolution/
25
   - rm -rf $HOME/.gradle/caches/*/plugin-resolution/
26
 
26
 
27
 install:
27
 install:
28
-  - touch $HOME/.bash_profile
29
   - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
28
   - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
29
+  - export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
30
   - nvm install $NODE_VERSION
30
   - nvm install $NODE_VERSION
31
   - nvm use $NODE_VERSION
31
   - nvm use $NODE_VERSION
32
   - nvm ls
32
   - nvm ls

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

13
 import org.junit.After;
13
 import org.junit.After;
14
 import org.junit.Before;
14
 import org.junit.Before;
15
 import org.junit.FixMethodOrder;
15
 import org.junit.FixMethodOrder;
16
-import org.junit.Ignore;
17
 import org.junit.Test;
16
 import org.junit.Test;
18
 import org.junit.runner.RunWith;
17
 import org.junit.runner.RunWith;
19
 import org.junit.runners.MethodSorters;
18
 import org.junit.runners.MethodSorters;
40
     }
39
     }
41
 
40
 
42
     @Test
41
     @Test
43
-    public void _1_showSplash_AcceptsOverlayPermissions_ShowsWelcomeScreen() throws Exception {
42
+    public void _1_acceptsOverlayPermissions_ShowsWelcomeScreen() throws Exception {
44
         launchTheApp();
43
         launchTheApp();
44
+        assertMainShown();
45
+    }
45
 
46
 
47
+    @Test
48
+    public void _2_showSplash() throws Exception {
49
+        launchTheApp();
50
+        assertExists(By.desc("NavigationSplashView"));
46
         assertMainShown();
51
         assertMainShown();
47
     }
52
     }
48
 
53
 
49
     @Test
54
     @Test
50
-    @Ignore
51
-    public void _2_relaunchFromBackground() throws Exception {
55
+    public void _3_relaunchFromBackground() throws Exception {
52
         launchTheApp();
56
         launchTheApp();
53
         assertMainShown();
57
         assertMainShown();
54
         push();
58
         push();
62
     }
66
     }
63
 
67
 
64
     @Test
68
     @Test
65
-    @Ignore
66
-    public void _3_relaunchAfterClose() throws Exception {
69
+    public void _4_relaunchAfterClose() throws Exception {
67
         launchTheApp();
70
         launchTheApp();
68
         push();
71
         push();
69
         assertPushedScreenShown();
72
         assertPushedScreenShown();
75
     }
78
     }
76
 
79
 
77
     @Test
80
     @Test
78
-    @Ignore
79
-    public void _4_deviceOrientationDoesNotDestroyActivity() throws Exception {
81
+    public void _5_deviceOrientationDoesNotDestroyActivity() throws Exception {
80
         launchTheApp();
82
         launchTheApp();
81
         push();
83
         push();
82
         assertPushedScreenShown();
84
         assertPushedScreenShown();
88
     }
90
     }
89
 
91
 
90
     @Test
92
     @Test
91
-    @Ignore
92
-    public void _5_relaunchAfterActivityKilledBySystem() throws Exception {
93
+    public void _6_relaunchAfterActivityKilledBySystem() throws Exception {
93
         launchTheApp();
94
         launchTheApp();
94
         push();
95
         push();
95
         assertPushedScreenShown();
96
         assertPushedScreenShown();