detox 20.51.0 → 20.51.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/Detox-android/com/wix/detox/{20.51.0/detox-20.51.0-sources.jar → 20.51.2/detox-20.51.2-sources.jar} +0 -0
  2. package/Detox-android/com/wix/detox/20.51.2/detox-20.51.2-sources.jar.md5 +1 -0
  3. package/Detox-android/com/wix/detox/20.51.2/detox-20.51.2-sources.jar.sha1 +1 -0
  4. package/Detox-android/com/wix/detox/20.51.2/detox-20.51.2-sources.jar.sha256 +1 -0
  5. package/Detox-android/com/wix/detox/20.51.2/detox-20.51.2-sources.jar.sha512 +1 -0
  6. package/Detox-android/com/wix/detox/20.51.2/detox-20.51.2.aar +0 -0
  7. package/Detox-android/com/wix/detox/20.51.2/detox-20.51.2.aar.md5 +1 -0
  8. package/Detox-android/com/wix/detox/20.51.2/detox-20.51.2.aar.sha1 +1 -0
  9. package/Detox-android/com/wix/detox/20.51.2/detox-20.51.2.aar.sha256 +1 -0
  10. package/Detox-android/com/wix/detox/20.51.2/detox-20.51.2.aar.sha512 +1 -0
  11. package/Detox-android/com/wix/detox/{20.51.0/detox-20.51.0.pom → 20.51.2/detox-20.51.2.pom} +1 -1
  12. package/Detox-android/com/wix/detox/20.51.2/detox-20.51.2.pom.md5 +1 -0
  13. package/Detox-android/com/wix/detox/20.51.2/detox-20.51.2.pom.sha1 +1 -0
  14. package/Detox-android/com/wix/detox/20.51.2/detox-20.51.2.pom.sha256 +1 -0
  15. package/Detox-android/com/wix/detox/20.51.2/detox-20.51.2.pom.sha512 +1 -0
  16. package/Detox-android/com/wix/detox/maven-metadata.xml +4 -4
  17. package/Detox-android/com/wix/detox/maven-metadata.xml.md5 +1 -1
  18. package/Detox-android/com/wix/detox/maven-metadata.xml.sha1 +1 -1
  19. package/Detox-android/com/wix/detox/maven-metadata.xml.sha256 +1 -1
  20. package/Detox-android/com/wix/detox/maven-metadata.xml.sha512 +1 -1
  21. package/Detox-ios-framework.tbz +0 -0
  22. package/Detox-ios-src.tbz +0 -0
  23. package/Detox-ios-xcuitest.tbz +0 -0
  24. package/android/detox/src/full/java/com/wix/detox/espresso/hierarchy/ViewHierarchyGenerator.kt +5 -1
  25. package/android/rninfo.gradle +1 -0
  26. package/package.json +9 -9
  27. package/src/devices/common/drivers/ios/tools/AppleSimUtils.js +40 -18
  28. package/Detox-android/com/wix/detox/20.51.0/detox-20.51.0-sources.jar.md5 +0 -1
  29. package/Detox-android/com/wix/detox/20.51.0/detox-20.51.0-sources.jar.sha1 +0 -1
  30. package/Detox-android/com/wix/detox/20.51.0/detox-20.51.0-sources.jar.sha256 +0 -1
  31. package/Detox-android/com/wix/detox/20.51.0/detox-20.51.0-sources.jar.sha512 +0 -1
  32. package/Detox-android/com/wix/detox/20.51.0/detox-20.51.0.aar +0 -0
  33. package/Detox-android/com/wix/detox/20.51.0/detox-20.51.0.aar.md5 +0 -1
  34. package/Detox-android/com/wix/detox/20.51.0/detox-20.51.0.aar.sha1 +0 -1
  35. package/Detox-android/com/wix/detox/20.51.0/detox-20.51.0.aar.sha256 +0 -1
  36. package/Detox-android/com/wix/detox/20.51.0/detox-20.51.0.aar.sha512 +0 -1
  37. package/Detox-android/com/wix/detox/20.51.0/detox-20.51.0.pom.md5 +0 -1
  38. package/Detox-android/com/wix/detox/20.51.0/detox-20.51.0.pom.sha1 +0 -1
  39. package/Detox-android/com/wix/detox/20.51.0/detox-20.51.0.pom.sha256 +0 -1
  40. package/Detox-android/com/wix/detox/20.51.0/detox-20.51.0.pom.sha512 +0 -1
@@ -0,0 +1 @@
1
+ 5e0c7cf223b2844c312ce7b46f0b4ae4
@@ -0,0 +1 @@
1
+ 7647c30cfe5667a0fcec15aaeae7734005319362
@@ -0,0 +1 @@
1
+ c0cd59d80824de60f5e9824a7815d1d5ce20de4708b5c06ebc70f2b4b8025827
@@ -0,0 +1 @@
1
+ 50c7f66a833e19128e9803fd5095aed5bc189530f9127255f9dc30c7daafa43fac1d8090c4f83be03e9fe8af97dc83cc5e511ed9b8cbae45a42e4487cbe945e4
@@ -0,0 +1 @@
1
+ 8e0d8436e2bb96bf972973f870a8a085
@@ -0,0 +1 @@
1
+ 8c632990b86b21310efddead2389ba03909ace2d
@@ -0,0 +1 @@
1
+ ec21c0143aef98ba788e5b1df0439004f3becfc8946b77b7fce5191db637f1c6
@@ -0,0 +1 @@
1
+ 9da3a9c4afa75981a87d68da9dd6ebc3c127acf19c7357f14609c3bc0c1540763299f931d1edca1d35291d9111dcf75439be40af192a33a8e4e9a380dfd3e94b
@@ -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.51.0</version>
6
+ <version>20.51.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
+ 661d1e493ad0092ee454fee94b4fb00c
@@ -0,0 +1 @@
1
+ a9b920066d9684445d20de5491006b7c5d884bb0
@@ -0,0 +1 @@
1
+ 0bc8cad6666fabef3b15bf3b7bf892733f2f2116f6bfad52f257ee106b86bdf4
@@ -0,0 +1 @@
1
+ a4d3b3dd635ad19ff0aaa1db31c0078eac601d3dba62822bcb47420243783d794bd6aeec31814cc5edb335c1ad6a0fa8c72dcd579fc368b2262a6bd1da2cd3b5
@@ -3,11 +3,11 @@
3
3
  <groupId>com.wix</groupId>
4
4
  <artifactId>detox</artifactId>
5
5
  <versioning>
6
- <latest>20.51.0</latest>
7
- <release>20.51.0</release>
6
+ <latest>20.51.2</latest>
7
+ <release>20.51.2</release>
8
8
  <versions>
9
- <version>20.51.0</version>
9
+ <version>20.51.2</version>
10
10
  </versions>
11
- <lastUpdated>20260421082825</lastUpdated>
11
+ <lastUpdated>20260529122938</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 7c4750894b2860af3f4c2188405c21fb
1
+ 20bc1700fb94a30f2d264773596e29f2
@@ -1 +1 @@
1
- cb1abf1460fc914c466758e0508071bc8fb2d340
1
+ 4097d680c440219843c46f43ec5d516d8ff12314
@@ -1 +1 @@
1
- 9238740367e0bd55c0158071793080db8843fe1639aead063c13aef8c67bae6c
1
+ b38f51224a43d95218d955edd7dc72841552b5b3fd69152250ee113af6c0ddaa
@@ -1 +1 @@
1
- 99ac92f2098b7616421af419f05a7bab050af5298a38064e75cb384adc858394b8f9d8f6e4a41f6d6c74eb1d6a97b8f65e8a44e01477a37b1f6d042edc46785c
1
+ a26816c0c6d3f8f39b54ff2d267e8c340afba1bd6df60823f9b8381c95444462237982196ac19b416a82c3294a7015106958e35112bbd393c78e9c888ccf2eca
Binary file
package/Detox-ios-src.tbz CHANGED
Binary file
Binary file
@@ -19,6 +19,7 @@ import kotlin.coroutines.resume
19
19
 
20
20
  private const val GET_HTML_SCRIPT = """
21
21
  (function() {
22
+ try {
22
23
  const blacklistedTags = ['script', 'style', 'head', 'meta'];
23
24
  const blackListedTagsSelector = blacklistedTags.join(',');
24
25
 
@@ -38,7 +39,10 @@ private const val GET_HTML_SCRIPT = """
38
39
  var serializedHtml = serializer.serializeToString(clonedDoc);
39
40
 
40
41
  // Return the serialized HTML as a string
41
- return serializedHtml;
42
+ return serializedHtml;
43
+ } catch {
44
+ return '<html xmlns="http://www.w3.org/1999/xhtml"><body></body></html>';
45
+ }
42
46
  })();
43
47
  """
44
48
 
@@ -49,4 +49,5 @@ ext.rnInfo = [
49
49
  isRN80OrHigher: rnMajorVer >= 80,
50
50
  isRN81OrHigher: rnMajorVer >= 81,
51
51
  isRN84OrHigher: rnMajorVer >= 84,
52
+ isRN85OrHigher: rnMajorVer >= 85,
52
53
  ]
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.51.0",
4
+ "version": "20.51.2",
5
5
  "bin": "local-cli/cli.js",
6
6
  "files": [
7
7
  "android",
@@ -54,13 +54,13 @@
54
54
  "postinstall": "node scripts/postinstall.js"
55
55
  },
56
56
  "devDependencies": {
57
- "@react-native-community/cli": "20.0.2",
58
- "@react-native-community/cli-platform-android": "20.0.2",
59
- "@react-native-community/cli-platform-ios": "20.0.2",
60
- "@react-native/babel-preset": "0.83.0",
61
- "@react-native/eslint-config": "0.83.0",
62
- "@react-native/metro-config": "0.83.0",
63
- "@react-native/typescript-config": "0.83.0",
57
+ "@react-native-community/cli": "20.1.0",
58
+ "@react-native-community/cli-platform-android": "20.1.0",
59
+ "@react-native-community/cli-platform-ios": "20.1.0",
60
+ "@react-native/babel-preset": "0.85.2",
61
+ "@react-native/eslint-config": "0.85.2",
62
+ "@react-native/metro-config": "0.85.2",
63
+ "@react-native/typescript-config": "0.85.2",
64
64
  "@tsconfig/react-native": "^3.0.0",
65
65
  "@types/bunyan": "^1.8.8",
66
66
  "@types/child-process-promise": "^2.2.1",
@@ -82,7 +82,7 @@
82
82
  "jest-allure2-reporter": "^2.2.6",
83
83
  "metro-react-native-babel-preset": "0.76.8",
84
84
  "prettier": "^3.1.1",
85
- "react-native": "0.84.0",
85
+ "react-native": "0.85.2",
86
86
  "react-native-codegen": "^0.0.8",
87
87
  "typescript": "^5.8.3",
88
88
  "wtfnode": "^0.9.1"
@@ -311,14 +311,24 @@ class AppleSimUtils {
311
311
  return;
312
312
  }
313
313
 
314
- const options = {
315
- args: `--byId ${udid} --match${matchType}`,
316
- retries: 1,
317
- statusLogs: {
318
- trying: `Trying to match ${matchType}...`,
319
- successful: `Matched ${matchType}!`
320
- },
321
- };
314
+ const isIOS26Plus = (await this._getMajorIOSVersion(udid)) >= 26;
315
+ const options = isIOS26Plus
316
+ ? {
317
+ args: `--booted --biometricMatch`,
318
+ retries: 1,
319
+ statusLogs: {
320
+ trying: `Trying to match ${matchType}...`,
321
+ successful: `Matched ${matchType}!`
322
+ }
323
+ }
324
+ : {
325
+ args: `--byId ${udid} --match${matchType}`,
326
+ retries: 1,
327
+ statusLogs: {
328
+ trying: `Trying to match ${matchType}...`,
329
+ successful: `Matched ${matchType}!`
330
+ }
331
+ };
322
332
  await this._execAppleSimUtils(options);
323
333
  }
324
334
 
@@ -327,14 +337,24 @@ class AppleSimUtils {
327
337
  return;
328
338
  }
329
339
 
330
- const options = {
331
- args: `--byId ${udid} --unmatch${matchType}`,
332
- retries: 1,
333
- statusLogs: {
334
- trying: `Trying to unmatch ${matchType}...`,
335
- successful: `Unmatched ${matchType}!`
336
- },
337
- };
340
+ const isIOS26Plus = (await this._getMajorIOSVersion(udid)) >= 26;
341
+ const options = isIOS26Plus
342
+ ? {
343
+ args: `--booted --biometricNonmatch`,
344
+ retries: 1,
345
+ statusLogs: {
346
+ trying: `Trying to unmatch ${matchType}...`,
347
+ successful: `Unmatched ${matchType}!`
348
+ }
349
+ }
350
+ : {
351
+ args: `--byId ${udid} --unmatch${matchType}`,
352
+ retries: 1,
353
+ statusLogs: {
354
+ trying: `Trying to unmatch ${matchType}...`,
355
+ successful: `Unmatched ${matchType}!`
356
+ }
357
+ };
338
358
  await this._execAppleSimUtils(options);
339
359
  }
340
360
 
@@ -344,13 +364,15 @@ class AppleSimUtils {
344
364
  }
345
365
 
346
366
  const toggle = yesOrNo === 'YES';
367
+ const isIOS26Plus = (await this._getMajorIOSVersion(udid)) >= 26;
368
+ const byIdOrBooted = isIOS26Plus ? `--booted` : `--byId ${udid}`;
347
369
  const options = {
348
- args: `--byId ${udid} --biometricEnrollment ${yesOrNo}`,
370
+ args: `${byIdOrBooted} --biometricEnrollment ${yesOrNo}`,
349
371
  retries: 1,
350
372
  statusLogs: {
351
373
  trying: `Turning ${toggle ? 'on' : 'off'} biometric enrollment...`,
352
374
  successful: toggle ? 'Activated!' : 'Deactivated!'
353
- },
375
+ }
354
376
  };
355
377
  await this._execAppleSimUtils(options);
356
378
  }
@@ -1 +0,0 @@
1
- e27fa966e5fe0bb1e0fe9d8dd47eae6e
@@ -1 +0,0 @@
1
- 3aa39b2445e86ce9bb4f83d7a9999a421beabee3
@@ -1 +0,0 @@
1
- 564e9102f35c86563510cf1331341bae4d6a84016f65f76dd53db4cd584cd013
@@ -1 +0,0 @@
1
- 9f1dea736c2ec071b9e24bc8ce64169dc7eff5d7e9e4daa574f17815e18a9bf253f7e13d20e3d2eddbd13d2937a35591afeb4ca5fb896abc131e7447e3ed15db
@@ -1 +0,0 @@
1
- 6c5b17b6a287db32fabf71f59d996c8c
@@ -1 +0,0 @@
1
- ce92a1ede1c4f01124d52e3634d1f99ab04a1306
@@ -1 +0,0 @@
1
- 1b268238bf728bad459c4d32b46d5311ce8e3a0d86203859ca03c1e7574b8eab
@@ -1 +0,0 @@
1
- 3c9f2db925939dbb46592be2b21b864ecf2b7a0da3fba3841693721158618a6ca57d66346537c1e002dd184789c9bdf2892cefb8296fcf1e18a4eb724486fd59
@@ -1 +0,0 @@
1
- 7ad13486ca1c01283092cad941dd6ae8
@@ -1 +0,0 @@
1
- e09ed2413140e577e1ea2878ad0138ca7bc1a578
@@ -1 +0,0 @@
1
- 375e8a1ed0315e23de4b1e345da228178326bd03778099ca88d5cc3378c82dae
@@ -1 +0,0 @@
1
- 8487e22276740d86ec2fd93a512124469b9bc1d30bd7705af851944c9f1fcc6c5e31eab6fd1df6dd3720c6835d8b884afd24d96ccd8dd17a4b5411fe10e98394