@testspectra/matchers 1.2.8 → 1.2.9

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,13 +11,18 @@ 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):
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.
18
+ *
14
19
  * @example
15
20
  * ```ts
16
21
  * await Spectra.pressKey("Enter");
17
22
  * await Spectra.pressKey("Tab");
18
23
  * ```
19
24
  */
20
- export type KeyOption = 'Enter' | 'Tab' | 'Escape' | 'Backspace' | 'Delete' | 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight' | 'Space';
25
+ export type KeyOption = 'Enter' | 'Tab' | 'Escape' | 'Backspace' | 'Delete' | 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight' | 'Space' | 'Home' | 'End' | 'PageUp' | 'PageDown';
21
26
  /**
22
27
  * Cardinal directions for gestures such as swipe and scroll.
23
28
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testspectra/matchers",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
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,6 +73,11 @@ 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):
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.
80
+ *
76
81
  * @example
77
82
  * ```ts
78
83
  * await Spectra.pressKey("Enter");
@@ -89,7 +94,11 @@ export type KeyOption =
89
94
  | 'ArrowDown'
90
95
  | 'ArrowLeft'
91
96
  | 'ArrowRight'
92
- | 'Space';
97
+ | 'Space'
98
+ | 'Home'
99
+ | 'End'
100
+ | 'PageUp'
101
+ | 'PageDown';
93
102
 
94
103
  /**
95
104
  * Cardinal directions for gestures such as swipe and scroll.
Binary file
Binary file