Daniel Zlotin 7 лет назад
Родитель
Сommit
ec5f9cea6f
1 измененных файлов: 2 добавлений и 4 удалений
  1. 2
    4
      scripts/test.e2e.ios.js

+ 2
- 4
scripts/test.e2e.ios.js Просмотреть файл

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();