Daniel Zlotin 7 lat temu
rodzic
commit
ec5f9cea6f
1 zmienionych plików z 2 dodań i 4 usunięć
  1. 2
    4
      scripts/test.e2e.ios.js

+ 2
- 4
scripts/test.e2e.ios.js Wyświetl plik

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