@testspectra/matchers 1.1.0 → 1.1.8-rc.1

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.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * # PlatformDriverBridge Contract
4
+ *
5
+ * The unified abstract driver contract consumed by `@testspectra/matchers` element proxies,
6
+ * fluent matchers, and the `Spectra` automation object. Every platform-specific driver
7
+ * (`WebCdpDriverBridge`, `AndroidTcpDriverBridge`) implements this interface so that the
8
+ * DSL layer contains zero platform branching.
9
+ */
10
+ export {};
package/dist/index.d.ts CHANGED
@@ -5,4 +5,5 @@
5
5
  * Canonical TypeScript contracts, action/assertion types, and ambient type definitions for TestSpectra.
6
6
  */
7
7
  export * from './types.js';
8
+ export * from './contract.js';
8
9
  export * from './proto.js';
package/dist/index.js CHANGED
@@ -5,4 +5,5 @@
5
5
  * Canonical TypeScript contracts, action/assertion types, and ambient type definitions for TestSpectra.
6
6
  */
7
7
  export * from './types.js';
8
+ export * from './contract.js';
8
9
  export * from './proto.js';
@@ -6,9 +6,16 @@ import { SingleElementMatcher, MultiElementMatcher, ElementTarget } from './type
6
6
  * @param target - Selector string or element instance.
7
7
  * @returns Resolved WebdriverIO.Element instance.
8
8
  */
9
- export declare function resolveElement(target: ElementTarget): Promise<WebdriverIO.Element>;
10
9
  /**
11
- * Executes a single element matcher against the WebdriverIO browser / element context.
10
+ * Resolves an ElementTarget (selector string, WebdriverIO.Element, Playwright Locator, or ChainablePromiseElement)
11
+ * to an actionable element instance.
12
+ *
13
+ * @param target - Selector string or element instance.
14
+ * @returns Resolved element or locator instance.
15
+ */
16
+ export declare function resolveElement(target: ElementTarget): Promise<any>;
17
+ /**
18
+ * Executes a single element matcher against the active runner context (Playwright or WebdriverIO).
12
19
  *
13
20
  * @param target - Optional element target (not required for browser-level assertions).
14
21
  * @param matcher - Single element matcher string.
@@ -16,7 +23,7 @@ export declare function resolveElement(target: ElementTarget): Promise<Webdriver
16
23
  */
17
24
  export declare function executeSingleMatcher(target: ElementTarget | undefined, matcher: SingleElementMatcher, args: any[]): Promise<void>;
18
25
  /**
19
- * Executes a multi-element collection matcher against WebdriverIO $$.
26
+ * Executes a multi-element collection matcher against $$.
20
27
  *
21
28
  * @param selector - CSS/XPath selector for the collection.
22
29
  * @param matcher - Multi-element matcher string.