@delacour/warden-e2e 0.13.0 → 0.15.0

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 (42) hide show
  1. package/{chunk-tnr47n9c.mjs → chunk-e3cry5br.mjs} +828 -255
  2. package/index.mjs +144 -14
  3. package/package.json +2 -2
  4. package/preload.mjs +375 -63
  5. package/types/core/src/affected/affected.schema.d.ts +5 -0
  6. package/types/core/src/builds/builds.defaults.d.ts +8 -0
  7. package/types/core/src/builds/config.schema.d.ts +9 -0
  8. package/types/core/src/builds/define-config.d.ts +9 -1
  9. package/types/core/src/conditions/conditions.config.d.ts +6 -1
  10. package/types/core/src/conditions/conditions.types.d.ts +21 -0
  11. package/types/core/src/conditions/inject-state.d.ts +3 -2
  12. package/types/e2e/src/a11y/a11y-target.d.ts +2 -0
  13. package/types/e2e/src/conditions/condition-events.d.ts +6 -1
  14. package/types/e2e/src/conditions/device-conditions.d.ts +8 -2
  15. package/types/e2e/src/device.d.ts +10 -2
  16. package/types/e2e/src/driver/android/android-settings.d.ts +9 -2
  17. package/types/e2e/src/driver/ax-wedge.d.ts +38 -0
  18. package/types/e2e/src/driver/bridge-stall.d.ts +41 -0
  19. package/types/e2e/src/driver/driver.types.d.ts +35 -2
  20. package/types/e2e/src/driver/ios/inject.d.ts +17 -2
  21. package/types/e2e/src/driver/ios/ios-driver.d.ts +17 -2
  22. package/types/e2e/src/driver/ios/ios-keyboard.d.ts +39 -0
  23. package/types/e2e/src/driver/ios/simd-client.d.ts +2 -0
  24. package/types/e2e/src/driver/ios/simd-protocol.d.ts +129 -0
  25. package/types/e2e/src/driver/keyboard-state.d.ts +9 -0
  26. package/types/e2e/src/driver/physical-conditions.d.ts +1 -1
  27. package/types/e2e/src/driver/read-deadline.d.ts +4 -0
  28. package/types/e2e/src/driver/settle.d.ts +11 -1
  29. package/types/e2e/src/errors.d.ts +3 -1
  30. package/types/e2e/src/expect/a11y-matchers.d.ts +7 -0
  31. package/types/e2e/src/expect/matchers.d.ts +5 -0
  32. package/types/e2e/src/index.d.ts +2 -1
  33. package/types/e2e/src/runner/bridge-evidence.d.ts +12 -0
  34. package/types/e2e/src/runner/results.d.ts +29 -0
  35. package/types/e2e/src/screen/actions.d.ts +7 -0
  36. package/types/e2e/src/screen/context.d.ts +11 -12
  37. package/types/e2e/src/screen/degraded-read.d.ts +23 -0
  38. package/types/e2e/src/screen/keyboard-cover.d.ts +26 -0
  39. package/types/e2e/src/screen/locator.d.ts +61 -7
  40. package/types/e2e/src/screen/react-locator.d.ts +17 -2
  41. package/types/e2e/src/screen/react-merge.d.ts +10 -0
  42. package/types/e2e/src/session.d.ts +6 -0
@@ -37,6 +37,12 @@ export type Session = {
37
37
  * reopens the driver and devtools, once per session. Resolves `true` when the test is worth running again.
38
38
  */
39
39
  recoverHid: (() => Promise<boolean>) | undefined;
40
+ /**
41
+ * Present for iOS simulator runs: after a test failed, asks the open driver whether `warden-simd` restarted the
42
+ * sim's wedged accessibility service (backboardd, which quits the app) within the last `attemptMs` (waiting for a
43
+ * restart still in flight). Resolves `true` once per restart: the test is worth running again.
44
+ */
45
+ recoverAxWedge: ((attemptMs: number) => Promise<boolean>) | undefined;
40
46
  /** closes the open driver and devtools so the next call opens them afresh (the device was rebooted under them) */
41
47
  resetDevice(): Promise<void>;
42
48
  /** where the console reporter prints one line; default fd 1 */