detox 20.18.1 → 20.18.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/Detox-android/com/wix/detox/{20.18.1/detox-20.18.1-sources.jar → 20.18.2/detox-20.18.2-sources.jar} +0 -0
  2. package/Detox-android/com/wix/detox/20.18.2/detox-20.18.2-sources.jar.md5 +1 -0
  3. package/Detox-android/com/wix/detox/20.18.2/detox-20.18.2-sources.jar.sha1 +1 -0
  4. package/Detox-android/com/wix/detox/20.18.2/detox-20.18.2-sources.jar.sha256 +1 -0
  5. package/Detox-android/com/wix/detox/20.18.2/detox-20.18.2-sources.jar.sha512 +1 -0
  6. package/Detox-android/com/wix/detox/{20.18.1/detox-20.18.1.pom → 20.18.2/detox-20.18.2.pom} +1 -1
  7. package/Detox-android/com/wix/detox/20.18.2/detox-20.18.2.pom.md5 +1 -0
  8. package/Detox-android/com/wix/detox/20.18.2/detox-20.18.2.pom.sha1 +1 -0
  9. package/Detox-android/com/wix/detox/20.18.2/detox-20.18.2.pom.sha256 +1 -0
  10. package/Detox-android/com/wix/detox/20.18.2/detox-20.18.2.pom.sha512 +1 -0
  11. package/Detox-android/com/wix/detox/maven-metadata.xml +4 -4
  12. package/Detox-android/com/wix/detox/maven-metadata.xml.md5 +1 -1
  13. package/Detox-android/com/wix/detox/maven-metadata.xml.sha1 +1 -1
  14. package/Detox-android/com/wix/detox/maven-metadata.xml.sha256 +1 -1
  15. package/Detox-android/com/wix/detox/maven-metadata.xml.sha512 +1 -1
  16. package/Detox-ios-src.tbz +0 -0
  17. package/Detox-ios.tbz +0 -0
  18. package/package.json +3 -3
  19. package/src/client/Client.js +6 -1
  20. package/src/devices/allocation/drivers/android/genycloud/exec/GenyCloudExec.js +0 -4
  21. package/src/devices/validation/android/GenycloudEnvValidator.js +1 -12
  22. package/src/devices/validation/factories/index.js +1 -4
  23. package/Detox-android/com/wix/detox/20.18.1/detox-20.18.1-sources.jar.md5 +0 -1
  24. package/Detox-android/com/wix/detox/20.18.1/detox-20.18.1-sources.jar.sha1 +0 -1
  25. package/Detox-android/com/wix/detox/20.18.1/detox-20.18.1-sources.jar.sha256 +0 -1
  26. package/Detox-android/com/wix/detox/20.18.1/detox-20.18.1-sources.jar.sha512 +0 -1
  27. package/Detox-android/com/wix/detox/20.18.1/detox-20.18.1.pom.md5 +0 -1
  28. package/Detox-android/com/wix/detox/20.18.1/detox-20.18.1.pom.sha1 +0 -1
  29. package/Detox-android/com/wix/detox/20.18.1/detox-20.18.1.pom.sha256 +0 -1
  30. package/Detox-android/com/wix/detox/20.18.1/detox-20.18.1.pom.sha512 +0 -1
  31. package/src/devices/allocation/drivers/android/genycloud/services/GenyAuthService.js +0 -12
  32. /package/Detox-android/com/wix/detox/{20.18.1/detox-20.18.1.aar → 20.18.2/detox-20.18.2.aar} +0 -0
  33. /package/Detox-android/com/wix/detox/{20.18.1/detox-20.18.1.aar.md5 → 20.18.2/detox-20.18.2.aar.md5} +0 -0
  34. /package/Detox-android/com/wix/detox/{20.18.1/detox-20.18.1.aar.sha1 → 20.18.2/detox-20.18.2.aar.sha1} +0 -0
  35. /package/Detox-android/com/wix/detox/{20.18.1/detox-20.18.1.aar.sha256 → 20.18.2/detox-20.18.2.aar.sha256} +0 -0
  36. /package/Detox-android/com/wix/detox/{20.18.1/detox-20.18.1.aar.sha512 → 20.18.2/detox-20.18.2.aar.sha512} +0 -0
@@ -0,0 +1 @@
1
+ 984c2c049b5e884c6e06025f4c41d648
@@ -0,0 +1 @@
1
+ c55e64b6f6ff0785932cf6da57c75459a04a27c5
@@ -0,0 +1 @@
1
+ cf3e3fdb877a0ca8a8b8e42a4b3a7a0589a39680f6f9263dccfd036a7da8e314
@@ -0,0 +1 @@
1
+ 3cb7f848f967498ac25311afb081737dfec1672eb1496bdce314ce650d5b906fa6d1fd585b5960dad4b2cfa559a309ac93f6426012b1b30f3d7460a146b8e655
@@ -3,7 +3,7 @@
3
3
  <modelVersion>4.0.0</modelVersion>
4
4
  <groupId>com.wix</groupId>
5
5
  <artifactId>detox</artifactId>
6
- <version>20.18.1</version>
6
+ <version>20.18.2</version>
7
7
  <packaging>aar</packaging>
8
8
  <name>Detox</name>
9
9
  <description>Gray box end-to-end testing and automation library for mobile apps</description>
@@ -0,0 +1 @@
1
+ 03283b4c2d4fa96f4ca820895e260f69
@@ -0,0 +1 @@
1
+ 12a874445c7e0c0d711d9de93dd1b8b5840caad3
@@ -0,0 +1 @@
1
+ e382ec27f04d8cd00a7c1101094cb0d1cd4b971b878426e8520623f4c916a03c
@@ -0,0 +1 @@
1
+ 363f339e417ce2fafcee0db4ebc150d611b77989bb0d59e5a87730c62a0e15e54442ea576959b09ed009264131346796ae7199009aa37b8ee8a88cf3a2632f93
@@ -3,11 +3,11 @@
3
3
  <groupId>com.wix</groupId>
4
4
  <artifactId>detox</artifactId>
5
5
  <versioning>
6
- <latest>20.18.1</latest>
7
- <release>20.18.1</release>
6
+ <latest>20.18.2</latest>
7
+ <release>20.18.2</release>
8
8
  <versions>
9
- <version>20.18.1</version>
9
+ <version>20.18.2</version>
10
10
  </versions>
11
- <lastUpdated>20240211204223</lastUpdated>
11
+ <lastUpdated>20240225122200</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- ef8e35c6c96b209a24b4c0f0f2a809fd
1
+ c405604464b2542f3b457afbe34b0ee1
@@ -1 +1 @@
1
- efd9cada46d479e0c5400cbb12dd9d273fab0882
1
+ 4bd8999479d6a183643b530b1deb9a715c7e3514
@@ -1 +1 @@
1
- 36d150b8d1bc8ea9a1f21638e7be5735563360e657960bc8dd3caffcaf3cd082
1
+ 8269d3d5aefa06d078b597aa6c066c2c93161a071602559d1cc6737756141622
@@ -1 +1 @@
1
- b5fd96ead15ad8617f0dde3a54c7507335c68023e39740b8979528e3eec0eaed4734ffc4e0abba740b422d07ebe27cc89da7bb3c68d6d066e41d473a57c125e8
1
+ f0137d78293940c4937558dcd958a9efbcd4300cd01da1b37ad12c86c9327b6584806053cfdbe75ea2a9907d1a73fcf4b09d5011abdb638ce7e7a2b77af4ae5a
package/Detox-ios-src.tbz CHANGED
Binary file
package/Detox-ios.tbz CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "detox",
3
3
  "description": "E2E tests and automation for mobile",
4
- "version": "20.18.1",
4
+ "version": "20.18.2",
5
5
  "bin": {
6
6
  "detox": "local-cli/cli.js"
7
7
  },
@@ -56,7 +56,7 @@
56
56
  "eslint-plugin-node": "^11.1.0",
57
57
  "eslint-plugin-unicorn": "^50.0.1",
58
58
  "jest": "^29.6.3",
59
- "jest-allure2-reporter": "^2.0.0-beta.5",
59
+ "jest-allure2-reporter": "^2.0.0-beta.9",
60
60
  "metro-react-native-babel-preset": "0.76.8",
61
61
  "prettier": "^3.1.1",
62
62
  "react-native": "0.73.2",
@@ -115,5 +115,5 @@
115
115
  "browserslist": [
116
116
  "node 18"
117
117
  ],
118
- "gitHead": "546d07f565b399b149ded11f511ee53ccd7cabee"
118
+ "gitHead": "550e128c2552e6f38c509167894eedfddd2aa8d8"
119
119
  }
@@ -137,6 +137,10 @@ class Client {
137
137
  }
138
138
 
139
139
  async sendAction(action) {
140
+ if (this._pendingAppCrash) {
141
+ throw this._pendingAppCrash;
142
+ }
143
+
140
144
  const { shouldQueryStatus, ...options } = this._inferSendOptions(action);
141
145
 
142
146
  return await (shouldQueryStatus
@@ -302,6 +306,8 @@ class Client {
302
306
  }
303
307
 
304
308
  _onAppConnected() {
309
+ this._pendingAppCrash = null;
310
+
305
311
  if (this._whenAppIsConnected.isPending()) {
306
312
  this._whenAppIsConnected.resolve();
307
313
  } else {
@@ -352,7 +358,6 @@ class Client {
352
358
  if (this._pendingAppCrash) {
353
359
  this._whenAppDisconnected.reject(this._pendingAppCrash);
354
360
  this._asyncWebSocket.rejectAll(this._pendingAppCrash);
355
- this._pendingAppCrash = null;
356
361
  } else if (this._asyncWebSocket.hasPendingActions()) {
357
362
  const error = new DetoxRuntimeError('The app has unexpectedly disconnected from Detox server.');
358
363
  this._asyncWebSocket.rejectAll(error);
@@ -11,10 +11,6 @@ class GenyCloudExec {
11
11
  return this._exec('--version');
12
12
  }
13
13
 
14
- whoAmI() {
15
- return this._exec('auth whoami');
16
- }
17
-
18
14
  getRecipe(name) {
19
15
  return this._exec(`recipes list --name "${name}"`);
20
16
  }
@@ -12,15 +12,13 @@ class GenycloudEnvValidator extends EnvironmentValidatorBase {
12
12
  * @param authService { GenyAuthService }
13
13
  * @param exec { GenyCloudExec }
14
14
  */
15
- constructor({ authService, exec }) {
15
+ constructor({ exec }) {
16
16
  super();
17
- this._authService = authService;
18
17
  this._exec = exec;
19
18
  }
20
19
 
21
20
  async validate() {
22
21
  await this._validateGmsaasVersion();
23
- await this._validateGmsaasAuth();
24
22
  }
25
23
 
26
24
  async _validateGmsaasVersion() {
@@ -32,15 +30,6 @@ class GenycloudEnvValidator extends EnvironmentValidatorBase {
32
30
  });
33
31
  }
34
32
  }
35
-
36
- async _validateGmsaasAuth() {
37
- if (!await this._authService.getLoginEmail()) {
38
- throw new DetoxRuntimeError({
39
- message: `Cannot run tests using 'android.genycloud' type devices, because Genymotion was not logged-in to!`,
40
- hint: `Log-in to Genymotion-cloud by running this command (and following instructions):\n${environment.getGmsaasPath()} auth login --help`,
41
- });
42
- }
43
- }
44
33
  }
45
34
 
46
35
  module.exports = GenycloudEnvValidator;
@@ -7,11 +7,8 @@ class Genycloud extends EnvValidatorFactory {
7
7
  const serviceLocator = require('../../servicelocator/android');
8
8
  const exec = serviceLocator.genycloud.exec;
9
9
 
10
- const GenyAuthService = require('../../allocation/drivers/android/genycloud/services/GenyAuthService');
11
- const authService = new GenyAuthService(exec);
12
-
13
10
  const GenycloudEnvValidator = require('../android/GenycloudEnvValidator');
14
- return new GenycloudEnvValidator({ authService, exec });
11
+ return new GenycloudEnvValidator({ exec });
15
12
  }
16
13
  }
17
14
 
@@ -1 +0,0 @@
1
- c164b85605ab451a8264339136ab7515
@@ -1 +0,0 @@
1
- c0458f1c1a890a407f68cdc86948d8a3c0692b03
@@ -1 +0,0 @@
1
- 7ab31f42474f721b1002201e416904aa1804b9119b550d187098697c5a5e2ea4
@@ -1 +0,0 @@
1
- 0953ca49ab67708bbfcc64545084577a6be24f0aa63d8e1a1edee659df478785207327ae2f25e803c39e08cda7f45d3250a4c9990ba0d27e4a6e0981f68c75f1
@@ -1 +0,0 @@
1
- 641806679125eb5647b88084efa48378
@@ -1 +0,0 @@
1
- 7a802fe47b5af9ea6a4605f263a4d6dd4c6cdd50
@@ -1 +0,0 @@
1
- 1267f8c9d8c86d162ee4379848fbacc8f83f463ac706b17161bdc01f38494181
@@ -1 +0,0 @@
1
- d9dd50f4f22f572bce5481ccc1a1d3150cb0ef263d2f38f1c22068c87f6a6922eb8447304662b3390451cd2a31abe56e77706cea5e7280b7120b8ba756e922fc
@@ -1,12 +0,0 @@
1
- class GenyAuthService {
2
- constructor(genyCloudExec) {
3
- this.genyCloudExec = genyCloudExec;
4
- }
5
-
6
- async getLoginEmail() {
7
- const whoAmI = await this.genyCloudExec.whoAmI();
8
- return whoAmI.auth.email;
9
- }
10
- }
11
-
12
- module.exports = GenyAuthService;