@testspectra/matchers 1.2.9 → 1.2.11

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.
package/dist/types.d.ts CHANGED
@@ -11,10 +11,12 @@ export type AssertionKey = 'elementDisplayed' | 'elementNotDisplayed' | 'element
11
11
  /**
12
12
  * Supported keyboard key names for `Spectra.pressKey(key)`.
13
13
  *
14
- * Single keys are emulated for real on every platform (Backspace deletes, Enter submits):
14
+ * Named special keys are emulated for real on every platform (Backspace deletes, Enter submits):
15
15
  * natively on Android via keycodes, via user-event in component tests, via CDP
16
- * `Input.dispatchKeyEvent` in web E2E. Anything else (chords like `Control+a`, raw numbers)
17
- * is a web-only best effort and must not be relied on cross-platform.
16
+ * `Input.dispatchKeyEvent` in web E2E. Single characters (including Space) keep the legacy
17
+ * synthetic keydown/keyup — several components consume characters through custom keydown
18
+ * handlers that would double-enter under genuine text insertion. Anything else (chords like
19
+ * `Control+a`, raw numbers) is a web-only best effort and must not be relied on cross-platform.
18
20
  *
19
21
  * @example
20
22
  * ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testspectra/matchers",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
4
4
  "description": "Canonical TypeScript contracts and ambient type definitions for TestSpectra",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/types.ts CHANGED
@@ -73,10 +73,12 @@ export type AssertionKey =
73
73
  /**
74
74
  * Supported keyboard key names for `Spectra.pressKey(key)`.
75
75
  *
76
- * Single keys are emulated for real on every platform (Backspace deletes, Enter submits):
76
+ * Named special keys are emulated for real on every platform (Backspace deletes, Enter submits):
77
77
  * natively on Android via keycodes, via user-event in component tests, via CDP
78
- * `Input.dispatchKeyEvent` in web E2E. Anything else (chords like `Control+a`, raw numbers)
79
- * is a web-only best effort and must not be relied on cross-platform.
78
+ * `Input.dispatchKeyEvent` in web E2E. Single characters (including Space) keep the legacy
79
+ * synthetic keydown/keyup — several components consume characters through custom keydown
80
+ * handlers that would double-enter under genuine text insertion. Anything else (chords like
81
+ * `Control+a`, raw numbers) is a web-only best effort and must not be relied on cross-platform.
80
82
  *
81
83
  * @example
82
84
  * ```ts
Binary file
Binary file