detox 20.21.0 → 20.22.0-smoke.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/Detox-android/com/wix/detox/{20.21.0/detox-20.21.0-sources.jar → 20.22.0-smoke.0/detox-20.22.0-smoke.0-sources.jar} +0 -0
  2. package/Detox-android/com/wix/detox/20.22.0-smoke.0/detox-20.22.0-smoke.0-sources.jar.md5 +1 -0
  3. package/Detox-android/com/wix/detox/20.22.0-smoke.0/detox-20.22.0-smoke.0-sources.jar.sha1 +1 -0
  4. package/Detox-android/com/wix/detox/20.22.0-smoke.0/detox-20.22.0-smoke.0-sources.jar.sha256 +1 -0
  5. package/Detox-android/com/wix/detox/20.22.0-smoke.0/detox-20.22.0-smoke.0-sources.jar.sha512 +1 -0
  6. package/Detox-android/com/wix/detox/{20.21.0/detox-20.21.0.pom → 20.22.0-smoke.0/detox-20.22.0-smoke.0.pom} +1 -1
  7. package/Detox-android/com/wix/detox/20.22.0-smoke.0/detox-20.22.0-smoke.0.pom.md5 +1 -0
  8. package/Detox-android/com/wix/detox/20.22.0-smoke.0/detox-20.22.0-smoke.0.pom.sha1 +1 -0
  9. package/Detox-android/com/wix/detox/20.22.0-smoke.0/detox-20.22.0-smoke.0.pom.sha256 +1 -0
  10. package/Detox-android/com/wix/detox/20.22.0-smoke.0/detox-20.22.0-smoke.0.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.21.0/detox-legacy-20.21.0-sources.jar → 20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0-sources.jar} +0 -0
  17. package/Detox-android/com/wix/detox-legacy/20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0-sources.jar.md5 +1 -0
  18. package/Detox-android/com/wix/detox-legacy/20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0-sources.jar.sha1 +1 -0
  19. package/Detox-android/com/wix/detox-legacy/20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0-sources.jar.sha256 +1 -0
  20. package/Detox-android/com/wix/detox-legacy/20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0-sources.jar.sha512 +1 -0
  21. package/Detox-android/com/wix/detox-legacy/{20.21.0/detox-legacy-20.21.0.pom → 20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0.pom} +1 -1
  22. package/Detox-android/com/wix/detox-legacy/20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0.pom.md5 +1 -0
  23. package/Detox-android/com/wix/detox-legacy/20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0.pom.sha1 +1 -0
  24. package/Detox-android/com/wix/detox-legacy/20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0.pom.sha256 +1 -0
  25. package/Detox-android/com/wix/detox-legacy/20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0.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-src.tbz +0 -0
  32. package/Detox-ios.tbz +0 -0
  33. package/detox.d.ts +2 -0
  34. package/package.json +2 -2
  35. package/src/client/Client.js +4 -0
  36. package/src/client/actions/actions.js +19 -0
  37. package/src/devices/runtime/RuntimeDevice.js +5 -0
  38. package/src/devices/runtime/drivers/DeviceDriverBase.js +4 -0
  39. package/src/devices/runtime/drivers/ios/SimulatorDriver.js +11 -0
  40. package/Detox-android/com/wix/detox/20.21.0/detox-20.21.0-sources.jar.md5 +0 -1
  41. package/Detox-android/com/wix/detox/20.21.0/detox-20.21.0-sources.jar.sha1 +0 -1
  42. package/Detox-android/com/wix/detox/20.21.0/detox-20.21.0-sources.jar.sha256 +0 -1
  43. package/Detox-android/com/wix/detox/20.21.0/detox-20.21.0-sources.jar.sha512 +0 -1
  44. package/Detox-android/com/wix/detox/20.21.0/detox-20.21.0.pom.md5 +0 -1
  45. package/Detox-android/com/wix/detox/20.21.0/detox-20.21.0.pom.sha1 +0 -1
  46. package/Detox-android/com/wix/detox/20.21.0/detox-20.21.0.pom.sha256 +0 -1
  47. package/Detox-android/com/wix/detox/20.21.0/detox-20.21.0.pom.sha512 +0 -1
  48. package/Detox-android/com/wix/detox-legacy/20.21.0/detox-legacy-20.21.0-sources.jar.md5 +0 -1
  49. package/Detox-android/com/wix/detox-legacy/20.21.0/detox-legacy-20.21.0-sources.jar.sha1 +0 -1
  50. package/Detox-android/com/wix/detox-legacy/20.21.0/detox-legacy-20.21.0-sources.jar.sha256 +0 -1
  51. package/Detox-android/com/wix/detox-legacy/20.21.0/detox-legacy-20.21.0-sources.jar.sha512 +0 -1
  52. package/Detox-android/com/wix/detox-legacy/20.21.0/detox-legacy-20.21.0.pom.md5 +0 -1
  53. package/Detox-android/com/wix/detox-legacy/20.21.0/detox-legacy-20.21.0.pom.sha1 +0 -1
  54. package/Detox-android/com/wix/detox-legacy/20.21.0/detox-legacy-20.21.0.pom.sha256 +0 -1
  55. package/Detox-android/com/wix/detox-legacy/20.21.0/detox-legacy-20.21.0.pom.sha512 +0 -1
  56. /package/Detox-android/com/wix/detox/{20.21.0/detox-20.21.0.aar → 20.22.0-smoke.0/detox-20.22.0-smoke.0.aar} +0 -0
  57. /package/Detox-android/com/wix/detox/{20.21.0/detox-20.21.0.aar.md5 → 20.22.0-smoke.0/detox-20.22.0-smoke.0.aar.md5} +0 -0
  58. /package/Detox-android/com/wix/detox/{20.21.0/detox-20.21.0.aar.sha1 → 20.22.0-smoke.0/detox-20.22.0-smoke.0.aar.sha1} +0 -0
  59. /package/Detox-android/com/wix/detox/{20.21.0/detox-20.21.0.aar.sha256 → 20.22.0-smoke.0/detox-20.22.0-smoke.0.aar.sha256} +0 -0
  60. /package/Detox-android/com/wix/detox/{20.21.0/detox-20.21.0.aar.sha512 → 20.22.0-smoke.0/detox-20.22.0-smoke.0.aar.sha512} +0 -0
  61. /package/Detox-android/com/wix/detox-legacy/{20.21.0/detox-legacy-20.21.0.aar → 20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0.aar} +0 -0
  62. /package/Detox-android/com/wix/detox-legacy/{20.21.0/detox-legacy-20.21.0.aar.md5 → 20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0.aar.md5} +0 -0
  63. /package/Detox-android/com/wix/detox-legacy/{20.21.0/detox-legacy-20.21.0.aar.sha1 → 20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0.aar.sha1} +0 -0
  64. /package/Detox-android/com/wix/detox-legacy/{20.21.0/detox-legacy-20.21.0.aar.sha256 → 20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0.aar.sha256} +0 -0
  65. /package/Detox-android/com/wix/detox-legacy/{20.21.0/detox-legacy-20.21.0.aar.sha512 → 20.22.0-smoke.0/detox-legacy-20.22.0-smoke.0.aar.sha512} +0 -0
@@ -0,0 +1 @@
1
+ c4f4ccfd2fcba821086c7873260e855f
@@ -0,0 +1 @@
1
+ 592e743660ec3256a4fbf492f9b426522512f62b
@@ -0,0 +1 @@
1
+ d88429a82475ff09df92573cf92a97b2787c7f62d371faafa004a39308f08b3f
@@ -0,0 +1 @@
1
+ cc8a61587f9e6c0ac85925cfbf3bb13ef42e2051f40675c88d80a7de82dedcc60fc46633575aef42721876eaad742bb107bd7e0e9f532903db9adc0a83115031
@@ -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.21.0</version>
6
+ <version>20.22.0-smoke.0</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
+ 08b5bbe3db6b9be9616306b3570f7cb3
@@ -0,0 +1 @@
1
+ dad3ec9cb42187fbe4f7a9b51fd24dd23fa45530
@@ -0,0 +1 @@
1
+ c7190cb71ca0226b2f23abf05f3522989f319f68f8300c17bf31eb547ded8b66
@@ -0,0 +1 @@
1
+ f0b4f5f51b5dec733b11d1af4b0bc77017895bbb17833f50a6640df7882f605dbc18569494d9aaece54270cf7fe87bf7060000d4802349d8e109b188bdd730b4
@@ -3,11 +3,11 @@
3
3
  <groupId>com.wix</groupId>
4
4
  <artifactId>detox</artifactId>
5
5
  <versioning>
6
- <latest>20.21.0</latest>
7
- <release>20.21.0</release>
6
+ <latest>20.22.0-smoke.0</latest>
7
+ <release>20.22.0-smoke.0</release>
8
8
  <versions>
9
- <version>20.21.0</version>
9
+ <version>20.22.0-smoke.0</version>
10
10
  </versions>
11
- <lastUpdated>20240513104458</lastUpdated>
11
+ <lastUpdated>20240514185910</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- ee4539794be82f984845b866ce47d797
1
+ 2f252337cdd9e99fda1427c0b8d2429e
@@ -1 +1 @@
1
- 047da11f8d7764ce83a44415f5ca14150b0d26e8
1
+ 60932dda2bb669edd352f0926db961a8d9574c17
@@ -1 +1 @@
1
- aa8c3fb9036b5f238114a0cc799621647355991b7b8d2d45653a4f283d2a1426
1
+ 264d462afccbf63addf6c8cc7febfbea7ec6579e93cb7458b4f145ee0f0b55fa
@@ -1 +1 @@
1
- 749a441df252d5a784d527cfb9e9179724c3bdfc95f10f40c305a7e260f717a63813b933921861a8593f61ea548f70bf7f9f8f4a5c19aaa1cd3b3480b081fc8e
1
+ 2b805fcc5c243a2ae845367b8e473ac354391f457bfcc6eea30405588a0314f8b2ce5add7c171b347c580130e4ecdf58ab525e6e4ba5b38f082fae597cd8bd53
@@ -0,0 +1 @@
1
+ 441dc5808b355d05ab08c63bde1d1a8fbb908fb7e268b3ea17d03cbb391b1ef4
@@ -0,0 +1 @@
1
+ acbb6862e83102362156aaa16d0c7b5daa77dced0ad2a4bc100b5efcb1a3418b6f6f1c9bf60d255c9e215192aa2141fcd0d0633e620e7de724d1452850348141
@@ -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.21.0</version>
6
+ <version>20.22.0-smoke.0</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
+ d3d2aa3a8d5cadc566cf10a7da2a2ad698fd6f7d
@@ -0,0 +1 @@
1
+ de03cc9848d2a6c0270536ff68c49f60c7bb654cd88ffe99f8e37a87d361350a
@@ -0,0 +1 @@
1
+ 22870bcbdaa0a9c7a061947742541588a41bd20753006af39eceb089882b57fcea144874247c16320c8d9c096db043f666e862f93732eb898db26e9024d5bc8f
@@ -3,11 +3,11 @@
3
3
  <groupId>com.wix</groupId>
4
4
  <artifactId>detox-legacy</artifactId>
5
5
  <versioning>
6
- <latest>20.21.0</latest>
7
- <release>20.21.0</release>
6
+ <latest>20.22.0-smoke.0</latest>
7
+ <release>20.22.0-smoke.0</release>
8
8
  <versions>
9
- <version>20.21.0</version>
9
+ <version>20.22.0-smoke.0</version>
10
10
  </versions>
11
- <lastUpdated>20240513104609</lastUpdated>
11
+ <lastUpdated>20240514185937</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- d545ee1d9b3d980031a6d7f23ae6622e
1
+ 59c51736cc7ed9113f52d8fafe5d43cb
@@ -1 +1 @@
1
- bf54a3a7dc2ac2d25d618a4c0426024abbec7163
1
+ 07b1ac117cfd7a7c4df5140ce727cc9966884a68
@@ -1 +1 @@
1
- d4d8c6d7ec27c61a5846b9cfe99277edaf6fa785c41e33ac1b5fc91d263696a1
1
+ df526f5a8da04d9f4672cf14cf2cf872d32a5ac94afcab23ac9099d1ccbbe5a4
@@ -1 +1 @@
1
- 6b6bff10ef38514b6e3c3898837a22e219ca01d19f77e98b95cc317ec857713435d0392e5a49147b9db41397f6cf7f7cabc006b5bf641d341e144288291a19a7
1
+ 8cd91f48d22cc01a90673b85b0f2840f3b84a7cba386524bbda9b9f4cea043074f87d43bfed711fee33baec91804f5c0b49d4a9d5ab461f890c3a980e31ebd30
package/Detox-ios-src.tbz CHANGED
Binary file
package/Detox-ios.tbz CHANGED
Binary file
package/detox.d.ts CHANGED
@@ -903,6 +903,8 @@ declare global {
903
903
  */
904
904
  captureViewHierarchy(name?: string): Promise<string>;
905
905
 
906
+ getUIHierarchy(): Promise<string>;
907
+
906
908
  /**
907
909
  * Simulate shake (iOS Only)
908
910
  */
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.21.0",
4
+ "version": "20.22.0-smoke.0",
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": "0d12b4bad9a22310b1bbaa886ad8acd606eef1f6"
118
+ "gitHead": "ef55a3cdc2c199fb501fa660e3f691b2565af5e2"
119
119
  }
@@ -225,6 +225,10 @@ class Client {
225
225
  }));
226
226
  }
227
227
 
228
+ async getUIHierarchy() {
229
+ return await this.sendAction(new actions.GetUIHierarchy());
230
+ }
231
+
228
232
  async currentStatus() {
229
233
  return await this.sendAction(new actions.CurrentStatus());
230
234
  }
@@ -292,6 +292,24 @@ class SetInstrumentsRecordingState extends Action {
292
292
  }
293
293
  }
294
294
 
295
+ class GetUIHierarchy extends Action {
296
+ constructor(params) {
297
+ super('getUIHierarchy', params);
298
+ }
299
+
300
+ get isAtomic() {
301
+ return false;
302
+ }
303
+
304
+ get timeout() {
305
+ return 0;
306
+ }
307
+
308
+ async handle(response) {
309
+ throw response.params.viewHierarchy;
310
+ }
311
+ }
312
+
295
313
  class CaptureViewHierarchy extends Action {
296
314
  constructor(params) {
297
315
  super('captureViewHierarchy', params);
@@ -336,4 +354,5 @@ module.exports = {
336
354
  SetOrientation,
337
355
  SetInstrumentsRecordingState,
338
356
  CaptureViewHierarchy,
357
+ GetUIHierarchy
339
358
  };
@@ -17,6 +17,7 @@ class RuntimeDevice {
17
17
  }, deviceDriver) {
18
18
  const methodNames = [
19
19
  'captureViewHierarchy',
20
+ 'getUIHierarchy',
20
21
  'clearKeychain',
21
22
  'disableSynchronization',
22
23
  'enableSynchronization',
@@ -195,6 +196,10 @@ class RuntimeDevice {
195
196
  return this.deviceDriver.captureViewHierarchy(name);
196
197
  }
197
198
 
199
+ async getUIHierarchy() {
200
+ return this.deviceDriver.getUIHierarchy();
201
+ }
202
+
198
203
  async sendToHome() {
199
204
  await this.deviceDriver.sendToHome();
200
205
  await this.deviceDriver.waitForBackground();
@@ -222,6 +222,10 @@ class DeviceDriverBase {
222
222
  async captureViewHierarchy() {
223
223
  return '';
224
224
  }
225
+
226
+ async getUIHierarchy() {
227
+ return '';
228
+ }
225
229
  }
226
230
 
227
231
  module.exports = DeviceDriverBase;
@@ -194,6 +194,17 @@ class SimulatorDriver extends IosDriver {
194
194
  return viewHierarchyURL;
195
195
  }
196
196
 
197
+ async getUIHierarchy() {
198
+ try {
199
+ await this.client.getUIHierarchy();
200
+ } catch (e) {
201
+ const stringError = e.toString();
202
+ return stringError.replace('Error: ', '');
203
+ }
204
+
205
+ return 'Failed to get UI hierarchy.';
206
+ }
207
+
197
208
  async setStatusBar(flags) {
198
209
  await this._applesimutils.statusBarOverride(this.udid, flags);
199
210
  }
@@ -1 +0,0 @@
1
- 3387de0925b210d074f132cf01ac3de0
@@ -1 +0,0 @@
1
- 559b5fbefe99b614d2a1dd80e0ad47f06ffc5408
@@ -1 +0,0 @@
1
- c3b9ef703b247428ada96d85eacf933c8c2b7d274335c75f9d4d32dd25028e9d
@@ -1 +0,0 @@
1
- 492d5dbb4ffc6c504fcc121021595d03221c7ede4d2ef61bc5c959df19968d732baf6940a2b839a551a52b65ef721c08e7b9f4028d4b90808b224a8d80bbc984
@@ -1 +0,0 @@
1
- 05807a16588292d8975405f31295b594
@@ -1 +0,0 @@
1
- f0ad65330c51d3a57e1e381edc64ddd7f10d5d11
@@ -1 +0,0 @@
1
- 720b6a69502a1047d143f23b5db0793c965f04f1d6fccd04b3472f64eac38d67
@@ -1 +0,0 @@
1
- 4857f694c3a4ba4c0a0e3a14e78906032687be8062d9630b658bbd7bedd3fb1098a989f86b11f7fc00ffad1b9927ff2dbaf48dfd74818f5e1c08ed9d26a267a5
@@ -1 +0,0 @@
1
- f297dccee1b070c04339c6d3a44aaf98
@@ -1 +0,0 @@
1
- 67a54cce54b41b23776bb74111f65aa2690445c1
@@ -1 +0,0 @@
1
- 54663486b8606482cc50334d106f99584d8ed62a030a7599d3a74328606e2175
@@ -1 +0,0 @@
1
- 79ac3563b92cd6ac25acc93885c0e866a2f1190d08988499261cfdf247f5fa4c5f8d3f5aa297f8682e822fdf751f89196fe4e0556d7328a40b39f7079179cddb
@@ -1 +0,0 @@
1
- 16fb38e9f0b98073b38adbc235fe3be4
@@ -1 +0,0 @@
1
- 043d16e8f617a51b47e9f9f53f96acd4a7bd5958
@@ -1 +0,0 @@
1
- a31050af14f97ee5232e932d0ff9c7e6f7703b6eb07c528da9c86ddc6b9e7670
@@ -1 +0,0 @@
1
- 037112076433da9365a46eeffd53e9556da255f081a7af4b781b902d9f52508242d0a9d8bb1e5f6a64ad2e243bdb54cab48c301b1c3e39853dde2ed0c1deffe1