@lvce-editor/test-worker 8.1.0 → 9.2.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 +9 -17
- package/package.json +2 -2
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;
|
|
@@ -282,6 +268,11 @@ interface ExtensionDetail {
|
|
|
282
268
|
readonly selectTab: (name: string) => Promise<void>;
|
|
283
269
|
}
|
|
284
270
|
|
|
271
|
+
interface ExtensionSearch {
|
|
272
|
+
readonly handleInput: (value: string) => Promise<void>;
|
|
273
|
+
readonly open: () => Promise<void>;
|
|
274
|
+
}
|
|
275
|
+
|
|
285
276
|
interface FileSystem {
|
|
286
277
|
readonly addFileHandle: (file: File) => Promise<void>;
|
|
287
278
|
readonly chmod: (uri: string, permissions: any) => Promise<void>;
|
|
@@ -553,6 +544,7 @@ export interface TestApi {
|
|
|
553
544
|
readonly Explorer: Explorer
|
|
554
545
|
readonly Extension: Extension
|
|
555
546
|
readonly ExtensionDetail: ExtensionDetail
|
|
547
|
+
readonly ExtensionSearch: ExtensionSearch
|
|
556
548
|
readonly FileSystem: FileSystem
|
|
557
549
|
readonly FindWidget: FindWidget
|
|
558
550
|
readonly IconTheme: IconTheme
|
|
@@ -582,4 +574,4 @@ export interface TestApi {
|
|
|
582
574
|
|
|
583
575
|
export interface Test {
|
|
584
576
|
(api: TestApi): Promise<void>
|
|
585
|
-
}
|
|
577
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/test-worker",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.2.0",
|
|
4
4
|
"description": "Test Worker",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"main": "dist/testWorkerMain.js",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@lvce-editor/constants": "^1.
|
|
14
|
+
"@lvce-editor/constants": "^1.28.0"
|
|
15
15
|
},
|
|
16
16
|
"types": "dist/api.d.ts"
|
|
17
17
|
}
|