@lvce-editor/test-worker 8.1.0 → 9.0.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.
- package/dist/api.d.ts +3 -17
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
|
|
2
1
|
export interface LocatorExpect {
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
negated: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
readonly checkSingleElementCondition: (fnName: string, options?: any) => Promise<void>;
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
readonly checkMultiElementCondition: (fnName: string, options: any) => Promise<void>;
|
|
15
2
|
readonly toBeVisible: () => Promise<void>;
|
|
16
3
|
readonly toHaveText: (text: string) => Promise<void>;
|
|
17
4
|
readonly toContainText: (text: string) => Promise<void>;
|
|
@@ -27,11 +14,10 @@ export interface LocatorExpect {
|
|
|
27
14
|
readonly not: LocatorExpect;
|
|
28
15
|
}
|
|
29
16
|
|
|
30
|
-
|
|
31
|
-
|
|
32
17
|
interface LocatorClickOptions {
|
|
33
18
|
readonly button?: string;
|
|
34
19
|
}
|
|
20
|
+
|
|
35
21
|
interface ILocatorExternal {
|
|
36
22
|
readonly click: (options: LocatorClickOptions) => Promise<void>;
|
|
37
23
|
readonly hover: () => Promise<void>;
|
|
@@ -41,11 +27,11 @@ interface ILocatorExternal {
|
|
|
41
27
|
readonly type: (text: string) => Promise<void>;
|
|
42
28
|
readonly dispatchEvent: (type: string, init: string) => Promise<void>;
|
|
43
29
|
}
|
|
30
|
+
|
|
44
31
|
interface LocatorConstructor {
|
|
45
32
|
(selector: string, option?: any): ILocatorExternal
|
|
46
33
|
}
|
|
47
34
|
|
|
48
|
-
|
|
49
35
|
export interface Diagnostic {
|
|
50
36
|
readonly rowIndex: number;
|
|
51
37
|
readonly columnIndex: number;
|
|
@@ -582,4 +568,4 @@ export interface TestApi {
|
|
|
582
568
|
|
|
583
569
|
export interface Test {
|
|
584
570
|
(api: TestApi): Promise<void>
|
|
585
|
-
}
|
|
571
|
+
}
|