detox 20.25.0 → 20.25.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. package/Detox-android/com/wix/detox/{20.25.0/detox-20.25.0-sources.jar → 20.25.1/detox-20.25.1-sources.jar} +0 -0
  2. package/Detox-android/com/wix/detox/20.25.1/detox-20.25.1-sources.jar.md5 +1 -0
  3. package/Detox-android/com/wix/detox/20.25.1/detox-20.25.1-sources.jar.sha1 +1 -0
  4. package/Detox-android/com/wix/detox/20.25.1/detox-20.25.1-sources.jar.sha256 +1 -0
  5. package/Detox-android/com/wix/detox/20.25.1/detox-20.25.1-sources.jar.sha512 +1 -0
  6. package/Detox-android/com/wix/detox/{20.25.0/detox-20.25.0.pom → 20.25.1/detox-20.25.1.pom} +1 -1
  7. package/Detox-android/com/wix/detox/20.25.1/detox-20.25.1.pom.md5 +1 -0
  8. package/Detox-android/com/wix/detox/20.25.1/detox-20.25.1.pom.sha1 +1 -0
  9. package/Detox-android/com/wix/detox/20.25.1/detox-20.25.1.pom.sha256 +1 -0
  10. package/Detox-android/com/wix/detox/20.25.1/detox-20.25.1.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-android/com/wix/detox-legacy/{20.25.0/detox-legacy-20.25.0-sources.jar → 20.25.1/detox-legacy-20.25.1-sources.jar} +0 -0
  17. package/Detox-android/com/wix/detox-legacy/20.25.1/detox-legacy-20.25.1-sources.jar.md5 +1 -0
  18. package/Detox-android/com/wix/detox-legacy/20.25.1/detox-legacy-20.25.1-sources.jar.sha1 +1 -0
  19. package/Detox-android/com/wix/detox-legacy/20.25.1/detox-legacy-20.25.1-sources.jar.sha256 +1 -0
  20. package/Detox-android/com/wix/detox-legacy/20.25.1/detox-legacy-20.25.1-sources.jar.sha512 +1 -0
  21. package/Detox-android/com/wix/detox-legacy/{20.25.0/detox-legacy-20.25.0.pom → 20.25.1/detox-legacy-20.25.1.pom} +1 -1
  22. package/Detox-android/com/wix/detox-legacy/20.25.1/detox-legacy-20.25.1.pom.md5 +1 -0
  23. package/Detox-android/com/wix/detox-legacy/20.25.1/detox-legacy-20.25.1.pom.sha1 +1 -0
  24. package/Detox-android/com/wix/detox-legacy/20.25.1/detox-legacy-20.25.1.pom.sha256 +1 -0
  25. package/Detox-android/com/wix/detox-legacy/20.25.1/detox-legacy-20.25.1.pom.sha512 +1 -0
  26. package/Detox-android/com/wix/detox-legacy/maven-metadata.xml +4 -4
  27. package/Detox-android/com/wix/detox-legacy/maven-metadata.xml.md5 +1 -1
  28. package/Detox-android/com/wix/detox-legacy/maven-metadata.xml.sha1 +1 -1
  29. package/Detox-android/com/wix/detox-legacy/maven-metadata.xml.sha256 +1 -1
  30. package/Detox-android/com/wix/detox-legacy/maven-metadata.xml.sha512 +1 -1
  31. package/Detox-ios-framework.tbz +0 -0
  32. package/Detox-ios-src.tbz +0 -0
  33. package/Detox-ios-xcuitest.tbz +0 -0
  34. package/package.json +2 -2
  35. package/src/devices/allocation/drivers/android/genycloud/exec/GenyCloudExec.js +1 -1
  36. package/src/devices/allocation/drivers/android/genycloud/services/GenyInstanceLifecycleService.js +27 -3
  37. package/src/devices/allocation/factories/android.js +1 -1
  38. package/src/devices/common/drivers/android/exec/ADB.js +2 -6
  39. package/Detox-android/com/wix/detox/20.25.0/detox-20.25.0-sources.jar.md5 +0 -1
  40. package/Detox-android/com/wix/detox/20.25.0/detox-20.25.0-sources.jar.sha1 +0 -1
  41. package/Detox-android/com/wix/detox/20.25.0/detox-20.25.0-sources.jar.sha256 +0 -1
  42. package/Detox-android/com/wix/detox/20.25.0/detox-20.25.0-sources.jar.sha512 +0 -1
  43. package/Detox-android/com/wix/detox/20.25.0/detox-20.25.0.pom.md5 +0 -1
  44. package/Detox-android/com/wix/detox/20.25.0/detox-20.25.0.pom.sha1 +0 -1
  45. package/Detox-android/com/wix/detox/20.25.0/detox-20.25.0.pom.sha256 +0 -1
  46. package/Detox-android/com/wix/detox/20.25.0/detox-20.25.0.pom.sha512 +0 -1
  47. package/Detox-android/com/wix/detox-legacy/20.25.0/detox-legacy-20.25.0-sources.jar.md5 +0 -1
  48. package/Detox-android/com/wix/detox-legacy/20.25.0/detox-legacy-20.25.0-sources.jar.sha1 +0 -1
  49. package/Detox-android/com/wix/detox-legacy/20.25.0/detox-legacy-20.25.0-sources.jar.sha256 +0 -1
  50. package/Detox-android/com/wix/detox-legacy/20.25.0/detox-legacy-20.25.0-sources.jar.sha512 +0 -1
  51. package/Detox-android/com/wix/detox-legacy/20.25.0/detox-legacy-20.25.0.pom.md5 +0 -1
  52. package/Detox-android/com/wix/detox-legacy/20.25.0/detox-legacy-20.25.0.pom.sha1 +0 -1
  53. package/Detox-android/com/wix/detox-legacy/20.25.0/detox-legacy-20.25.0.pom.sha256 +0 -1
  54. package/Detox-android/com/wix/detox-legacy/20.25.0/detox-legacy-20.25.0.pom.sha512 +0 -1
  55. /package/Detox-android/com/wix/detox/{20.25.0/detox-20.25.0.aar → 20.25.1/detox-20.25.1.aar} +0 -0
  56. /package/Detox-android/com/wix/detox/{20.25.0/detox-20.25.0.aar.md5 → 20.25.1/detox-20.25.1.aar.md5} +0 -0
  57. /package/Detox-android/com/wix/detox/{20.25.0/detox-20.25.0.aar.sha1 → 20.25.1/detox-20.25.1.aar.sha1} +0 -0
  58. /package/Detox-android/com/wix/detox/{20.25.0/detox-20.25.0.aar.sha256 → 20.25.1/detox-20.25.1.aar.sha256} +0 -0
  59. /package/Detox-android/com/wix/detox/{20.25.0/detox-20.25.0.aar.sha512 → 20.25.1/detox-20.25.1.aar.sha512} +0 -0
  60. /package/Detox-android/com/wix/detox-legacy/{20.25.0/detox-legacy-20.25.0.aar → 20.25.1/detox-legacy-20.25.1.aar} +0 -0
  61. /package/Detox-android/com/wix/detox-legacy/{20.25.0/detox-legacy-20.25.0.aar.md5 → 20.25.1/detox-legacy-20.25.1.aar.md5} +0 -0
  62. /package/Detox-android/com/wix/detox-legacy/{20.25.0/detox-legacy-20.25.0.aar.sha1 → 20.25.1/detox-legacy-20.25.1.aar.sha1} +0 -0
  63. /package/Detox-android/com/wix/detox-legacy/{20.25.0/detox-legacy-20.25.0.aar.sha256 → 20.25.1/detox-legacy-20.25.1.aar.sha256} +0 -0
  64. /package/Detox-android/com/wix/detox-legacy/{20.25.0/detox-legacy-20.25.0.aar.sha512 → 20.25.1/detox-legacy-20.25.1.aar.sha512} +0 -0
@@ -0,0 +1 @@
1
+ ef152eed43d99abecc781d2c5581ed2c
@@ -0,0 +1 @@
1
+ a00c63f1d6864fe3684aabdc4addaf251db4f12d
@@ -0,0 +1 @@
1
+ 9d2842e3781dc8085a80c2029c5d63cac9b382181371e3d715e71248ae81e619
@@ -0,0 +1 @@
1
+ 9f993e109ac46d9ec4132ad900b0eee9e4f5604909c69496ebc364ba1bc32ceb19fca9b5adbfe6a9e61c4c489e6a21e61efd58ec6a0602a4c8dd35c0f1897c72
@@ -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.25.0</version>
6
+ <version>20.25.1</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
+ 5a378650b3fb1fc751bad1924a05e988
@@ -0,0 +1 @@
1
+ a2d652e833f0d7a91a8f05e2232a4ca964992a66
@@ -0,0 +1 @@
1
+ 97b5030e5db6c3d762c9a24ecc11a6989f4079591ddab23d2b8c67e4ac20bfb7
@@ -0,0 +1 @@
1
+ 37ab0fe6dec997c70fdff5e0f76acf744c487d150a70954bffa0467042c861b2bfe3711d53762c1ea0efce1a6fc8c29b82bfb822435cac2756474fcec24c4d5e
@@ -3,11 +3,11 @@
3
3
  <groupId>com.wix</groupId>
4
4
  <artifactId>detox</artifactId>
5
5
  <versioning>
6
- <latest>20.25.0</latest>
7
- <release>20.25.0</release>
6
+ <latest>20.25.1</latest>
7
+ <release>20.25.1</release>
8
8
  <versions>
9
- <version>20.25.0</version>
9
+ <version>20.25.1</version>
10
10
  </versions>
11
- <lastUpdated>20240715205614</lastUpdated>
11
+ <lastUpdated>20240716121904</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 7190e56ff7f9476749c4b80df18b904f
1
+ 275ff0123e1dbaa1aed3a7e91e9ae762
@@ -1 +1 @@
1
- 3dd6be11b5dfc415e669f7dae9b3a64d1c175366
1
+ f986a8170fefe76b9f4efd0b755aaccde8b51bdd
@@ -1 +1 @@
1
- 1410ac33039127064c7d3e49dadc668c0f7e473f41d2cc900904d50340652623
1
+ 779e3063806e639cd380893e02fe5a902fbdad0f12d6eb06b09819f07a863272
@@ -1 +1 @@
1
- ded5ced73efe397aba118e65aef95bb92b5de64ea19065c918bcfec049416209b07a08da188f221da3d57a666ee2c3446e8e197ce19d09802b4b4d8f7e7bcdd2
1
+ 8c0fae16887da6da5fa405a62587e05612fa0b27a8d4e047419dfeb0bf3889b83c4c367941056b92b309b327c3f9aa28f1b26cc882ce6dda96ec2564a0836089
@@ -0,0 +1 @@
1
+ 5faf79ea736df2cf512a937df79bec2a
@@ -0,0 +1 @@
1
+ 834508470595778511d3f3b564de2d31413e57ff
@@ -0,0 +1 @@
1
+ 3d5e951f611b30a5d85d3535db3152824f019c4cd99972ff304b76d0c46b1038
@@ -0,0 +1 @@
1
+ ff7bf763835d49aa17a6ba58b738cf47e5577038c10de0e6af0c629be076970895540b02ee8ba9d431c277f28aa1458c617d95b9df0adb0a32d0fa3afb67972c
@@ -3,7 +3,7 @@
3
3
  <modelVersion>4.0.0</modelVersion>
4
4
  <groupId>com.wix</groupId>
5
5
  <artifactId>detox-legacy</artifactId>
6
- <version>20.25.0</version>
6
+ <version>20.25.1</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
+ 275a026938b603bc63c62aa9105660ab
@@ -0,0 +1 @@
1
+ 38f52f7d5a0616f1ea0c7fd7831197ebda6b4df9
@@ -0,0 +1 @@
1
+ 92ee50857ac9fb128bd30d6079ed09ef71e53526fe45581baec69d72bc05c5a4
@@ -0,0 +1 @@
1
+ e6ca3c09f9026d4e0c54b71f8b1c78506fc6a2005c3f41e6df65b4f8f36fb4bea770cca153c887f140ce338200397777168a55e52bd51c4894dbe11677d422b6
@@ -3,11 +3,11 @@
3
3
  <groupId>com.wix</groupId>
4
4
  <artifactId>detox-legacy</artifactId>
5
5
  <versioning>
6
- <latest>20.25.0</latest>
7
- <release>20.25.0</release>
6
+ <latest>20.25.1</latest>
7
+ <release>20.25.1</release>
8
8
  <versions>
9
- <version>20.25.0</version>
9
+ <version>20.25.1</version>
10
10
  </versions>
11
- <lastUpdated>20240715205632</lastUpdated>
11
+ <lastUpdated>20240716121940</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- dade265a6ab1e6c2805c7c514248c301
1
+ 39a5211574c6847cfa8ba0c843d19419
@@ -1 +1 @@
1
- 2f0e11145b8c19b7d690ac624dded2d174b5d73d
1
+ 03853c1e7b6181d8a82d09756d5ffeb0894d2883
@@ -1 +1 @@
1
- 4bc8b1de62674a27c93222c12a83391a17162ebd7eb724d98d4963a367a529d1
1
+ 3c07d8c65169a75189c32e72f195d09399c059a0a42a5d42e0a54e06a9c1af8e
@@ -1 +1 @@
1
- 7b65922619711eceecefd19ecc74f38b37f99d3356eb3c562084311c4fd65a80bae64ca6766da2db270856e83d92ca067103043ec4394d6e8fed84307f2a424b
1
+ 01a09bb5c4de685f4a81bb7b11d211230808546068b486ca51e3889dfb74ad278c18f7a330c6b1898d73a8b993d91884e36336fcb84054e1a923b93f6578613f
Binary file
package/Detox-ios-src.tbz CHANGED
Binary file
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.25.0",
4
+ "version": "20.25.1",
5
5
  "bin": {
6
6
  "detox": "local-cli/cli.js"
7
7
  },
@@ -115,5 +115,5 @@
115
115
  "browserslist": [
116
116
  "node 14"
117
117
  ],
118
- "gitHead": "cc035471e072da19c16fc9e49983e00eddfe411b"
118
+ "gitHead": "f25468f5b0cf6e2895fb6b51b96ffc14263f2084"
119
119
  }
@@ -28,7 +28,7 @@ class GenyCloudExec {
28
28
  }
29
29
 
30
30
  adbConnect(instanceUUID) {
31
- return this._exec(`instances adbconnect ${instanceUUID}`);
31
+ return this._exec(`instances adbconnect ${instanceUUID}`, { retries: 0 });
32
32
  }
33
33
 
34
34
  stopInstance(instanceUUID) {
@@ -1,8 +1,16 @@
1
+ const log = require('../../../../../../utils/logger').child({ cat: 'device' });
2
+ const retry = require('../../../../../../utils/retry');
3
+
1
4
  const Instance = require('./dto/GenyInstance');
2
5
 
3
6
  class GenyInstanceLifecycleService {
4
- constructor(genyCloudExec) {
7
+ /**
8
+ * @param { import('../exec/GenyCloudExec') } genyCloudExec
9
+ * @param { import('../../../../../common/drivers/android/exec/ADB') } adb
10
+ */
11
+ constructor(genyCloudExec, adb) {
5
12
  this._genyCloudExec = genyCloudExec;
13
+ this._adb = adb;
6
14
  }
7
15
 
8
16
  async createInstance(recipeUUID, instanceName) {
@@ -10,8 +18,24 @@ class GenyInstanceLifecycleService {
10
18
  return new Instance(result.instance);
11
19
  }
12
20
 
13
- async adbConnectInstance(instanceUUID) {
14
- const result = (await this._genyCloudExec.adbConnect(instanceUUID));
21
+ async adbConnectInstance(instanceUUID){
22
+ const doAdbConnect = async () =>
23
+ this._genyCloudExec.adbConnect(instanceUUID);
24
+ const beforeEachRetry = async () => {
25
+ try {
26
+ const { stdout } = await this._adb.devices({ retries: 0, verbosity: 'low' });
27
+ log.warn('adb-connect command failed, current ADB devices list:\n', stdout);
28
+ } catch (e) {
29
+ log.warn('adb-connect command failed; couldn\'t get the list of current devices (see error)', e);
30
+ }
31
+ return true;
32
+ };
33
+ const options = {
34
+ conditionFn: beforeEachRetry,
35
+ retries: 2,
36
+ };
37
+
38
+ const result = await retry(options, doAdbConnect);
15
39
  return new Instance(result.instance);
16
40
  }
17
41
 
@@ -66,7 +66,7 @@ class Genycloud extends DeviceAllocatorFactory {
66
66
  const recipeService = new RecipesService(exec);
67
67
 
68
68
  const InstanceLifecycleService = require('../drivers/android/genycloud/services/GenyInstanceLifecycleService');
69
- const instanceLifecycleService = new InstanceLifecycleService(exec);
69
+ const instanceLifecycleService = new InstanceLifecycleService(exec, adb);
70
70
 
71
71
  const RecipeQuerying = require('../drivers/android/genycloud/GenyRecipeQuerying');
72
72
  const recipeQuerying = new RecipeQuerying(recipeService);
@@ -20,12 +20,8 @@ class ADB {
20
20
  await this.adbCmd('', 'start-server', { retries: 0, verbosity: 'high' });
21
21
  }
22
22
 
23
- async killDaemon() {
24
- await this.adbCmd('', 'kill-server', { retries: 0, verbosity: 'high' });
25
- }
26
-
27
- async devices() {
28
- const { stdout } = await this.adbCmd('', 'devices', { verbosity: 'high' });
23
+ async devices(options) {
24
+ const { stdout } = await this.adbCmd('', 'devices', { verbosity: 'high', ...options });
29
25
  /** @type {DeviceHandle[]} */
30
26
  const devices = _.chain(stdout)
31
27
  .trim()
@@ -1 +0,0 @@
1
- 1ef4d5de8e6a4ecba3ed72380b788a83
@@ -1 +0,0 @@
1
- bf218e51fdffafef09dbfc843a4e78a280e65d89
@@ -1 +0,0 @@
1
- 6fc99e94e5a63dcfdec73700425a79685a1379d89894df57063ece91822a9e4d
@@ -1 +0,0 @@
1
- 78ba7a9072d2a529054068b59f43da93616ffe5bce9cb99aacded5caf0aac926a3b68afa19dac3e714cf82bb74259a1dc94bf7de277296ea6843c6417676c712
@@ -1 +0,0 @@
1
- 957806b8f4d6b7cc51959522d64dcb7f
@@ -1 +0,0 @@
1
- feb3185877ed9e49f252ceba89b9a338a8780a7e
@@ -1 +0,0 @@
1
- 720aecc2ad5d50ce4c088fb9c22477d7e1682f19b865e64b5f3bb40f316a471d
@@ -1 +0,0 @@
1
- aeb1ef3a386a2214a8d59b5cfd6941167a3482a2037a0578d9508791784c7687c75ff3cfc8d344d4ed475e2d25f39c588243ea3e0b49371c02ffd0f340ad7a1d
@@ -1 +0,0 @@
1
- 65c4c13e340925f4aab9a63f04e0421d
@@ -1 +0,0 @@
1
- 7fe9a252f0ff18215ca79bcae96b29b15e819711
@@ -1 +0,0 @@
1
- aeb521a3fd006873fa3f0c7252b6fdc772d9264ede1f2ce85e3de69eafc0b136
@@ -1 +0,0 @@
1
- 73329439f480b60ffca53d8244d27883adddba2b4d18c3753b8e6247cee9499674921b522c51fd2f1a2cd59dd84448e22dc7005f8b7c047d61a7aeaf515d8924
@@ -1 +0,0 @@
1
- 20f9a40218510a8b583767d4fe5c5b2b
@@ -1 +0,0 @@
1
- 30587cdeead2f48ccc50d83c3a7e9f3f29aa3266
@@ -1 +0,0 @@
1
- 6801fa55201f5da99902aef7e9b8e769128742421215ddc0838df2b42e06f539
@@ -1 +0,0 @@
1
- a68a395358cf5998b6f531d3845189b2c3091d2d2ad84e96557458a413a3c891d5fcab1f21fee134422463a011473dfe472353d4b7b2f1e98cccda4537634346