@lvce-editor/test-worker 8.0.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 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
+ }
@@ -3501,7 +3501,7 @@ const SettingsView = {
3501
3501
 
3502
3502
  const selectIndex = async index => {
3503
3503
  // @ts-ignore
3504
- await invoke$1('Source Control.selectIndex');
3504
+ await invoke$1('Source Control.selectIndex', index);
3505
3505
  };
3506
3506
  const acceptInput = async () => {
3507
3507
  await invoke$1('Source Control.acceptInput');
@@ -3515,7 +3515,7 @@ const handleClickSourceControlButtons = async (index, name) => {
3515
3515
  };
3516
3516
  const show = async () => {
3517
3517
  // @ts-ignore
3518
- await invoke$1('SideBar.open', 'Source Control');
3518
+ await open$1('Source Control');
3519
3519
  };
3520
3520
 
3521
3521
  const SourceControl = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "8.0.0",
3
+ "version": "9.0.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",