Daniel Zlotin 7 vuotta sitten
vanhempi
commit
ec5f9cea6f
1 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  1. 2
    4
      scripts/test.e2e.ios.js

+ 2
- 4
scripts/test.e2e.ios.js Näytä tiedosto

7
 
7
 
8
 function run() {
8
 function run() {
9
   try {
9
   try {
10
-    startRecording();
11
     const conf = release ? `release` : `debug`;
10
     const conf = release ? `release` : `debug`;
12
     exec.execSync(`detox build --configuration ios.sim.${conf}`);
11
     exec.execSync(`detox build --configuration ios.sim.${conf}`);
13
-    exec.execAsync(`sleep 30`).then(() => {
12
+    exec.execAsync(`sleep 10`).then(() => {
14
       exec.execAsync(`open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app`);
13
       exec.execAsync(`open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app`);
15
     });
14
     });
16
-
17
-
15
+    startRecording();
18
     exec.execSync(`detox test --configuration ios.sim.${conf} ${process.env.CI ? '--cleanup' : ''}`);
16
     exec.execSync(`detox test --configuration ios.sim.${conf} ${process.env.CI ? '--cleanup' : ''}`);
19
   } finally {
17
   } finally {
20
     stopRecording();
18
     stopRecording();