@lvce-editor/test-with-playwright 2.6.0 → 2.7.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.
Files changed (2) hide show
  1. package/api.d.ts +282 -0
  2. package/package.json +2 -2
package/api.d.ts ADDED
@@ -0,0 +1,282 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ declare const show: () => Promise<any>;
4
+ declare const handleClickOk: () => Promise<any>;
5
+ declare const handleClickClose: () => Promise<any>;
6
+ declare const handleClickCopy: () => Promise<any>;
7
+ declare const focusNext: () => Promise<any>;
8
+ declare const focusPrevious: () => Promise<any>;
9
+ declare const focus: () => Promise<void>;
10
+ declare const focusFirst: () => Promise<void>;
11
+ declare const focusLast: () => Promise<void>;
12
+ declare const focusNext$1: () => Promise<void>;
13
+ declare const focusPrevious$1: () => Promise<void>;
14
+ declare const handleClick: (index: number) => Promise<void>;
15
+ declare const handleContextMenu: () => Promise<void>;
16
+ declare const selectCurrent: () => Promise<void>;
17
+ declare const getBaseUrl: () => string;
18
+ declare const execute: (id: string, ...args: readonly any[]) => Promise<any>;
19
+ declare const selectItem: (text: string) => Promise<void>;
20
+ declare const setCursor: (rowIndex: number, columnIndex: number) => Promise<void>;
21
+ declare const openCompletion: () => Promise<void>;
22
+ declare const openEditorContextMenu: () => Promise<void>;
23
+ declare const invokeTabCompletion: () => Promise<void>;
24
+ declare const executeTabCompletion: () => Promise<void>;
25
+ declare const invokeBraceCompletion: (text: string) => Promise<void>;
26
+ declare const cursorCharacterRight: () => Promise<void>;
27
+ declare const cursorCharacterLeft: () => Promise<void>;
28
+ declare const copyLineDown: () => Promise<void>;
29
+ declare const cursorDown: () => Promise<void>;
30
+ declare const cursorUp: () => Promise<void>;
31
+ declare const cursorWordLeft: () => Promise<void>;
32
+ declare const cursorWordRight: () => Promise<void>;
33
+ declare const goToDefinition: () => Promise<void>;
34
+ declare const openHover: () => Promise<void>;
35
+ declare const goToTypeDefinition: () => Promise<void>;
36
+ declare const type: (text: string) => Promise<void>;
37
+ declare const findAllReferences: () => Promise<void>;
38
+ declare const findAllImplementations: () => Promise<void>;
39
+ declare const setSelections: (selections: any) => Promise<void>;
40
+ declare const openFindWidget: () => Promise<void>;
41
+ declare const setDeltaY: (deltaY: number) => Promise<void>;
42
+ declare const format: () => Promise<void>;
43
+ declare const insertLineBreak: () => Promise<void>;
44
+ declare const openSourceActions: () => Promise<void>;
45
+ declare const sourceActionsSelectCurrent: () => Promise<void>;
46
+ declare const openCompletionDetails: () => Promise<void>;
47
+ declare const closeCompletionDetails: () => Promise<void>;
48
+ declare const toggleCompletionDetails: () => Promise<void>;
49
+ declare const organizeImports: () => Promise<void>;
50
+ declare const addAllMissingImports: () => Promise<void>;
51
+ declare const sortImports: () => Promise<void>;
52
+ declare const toggleLineComment: () => Promise<void>;
53
+ declare const toggleBlockComment: () => Promise<void>;
54
+ declare const selectAll: () => Promise<void>;
55
+ declare const openColorPicker: () => Promise<void>;
56
+ declare const openFind: () => Promise<void>;
57
+ declare const deleteAllLeft: () => Promise<void>;
58
+ declare const deleteAllRight: () => Promise<void>;
59
+ declare const cursorWordPartLeft: () => Promise<void>;
60
+ declare const cursorWordPartRight: () => Promise<void>;
61
+ declare const cursorEnd: () => Promise<void>;
62
+ declare const cursorHome: () => Promise<void>;
63
+ declare const copyLineUp: () => Promise<void>;
64
+ declare const copy: () => Promise<void>;
65
+ declare const closeColorPicker: () => Promise<void>;
66
+ declare const openContextMenu: () => Promise<void>;
67
+ declare const getText: () => Promise<string>;
68
+ declare const rename: () => Promise<void>;
69
+ declare const showHover: () => Promise<void>;
70
+ declare const openRename: () => Promise<void>;
71
+ declare const shouldHaveText: (expectedText: string) => Promise<void>;
72
+ declare const openContextMenu$1: (index: number) => Promise<void>;
73
+ declare const focus$1: () => Promise<void>;
74
+ declare const focusNext$2: () => Promise<void>;
75
+ declare const focusIndex: (index: number) => Promise<void>;
76
+ declare const clickCurrent: () => Promise<void>;
77
+ declare const handleArrowLeft: () => Promise<void>;
78
+ declare const focusLast$1: () => Promise<void>;
79
+ declare const focusFirst$1: () => Promise<void>;
80
+ declare const removeDirent: () => Promise<void>;
81
+ declare const expandRecursively: () => Promise<void>;
82
+ declare const newFile: () => Promise<void>;
83
+ declare const handleClick$1: (index: number) => Promise<void>;
84
+ declare const rename$1: () => Promise<void>;
85
+ declare const cancelEdit: () => Promise<void>;
86
+ declare const acceptEdit: () => Promise<void>;
87
+ declare const updateEditingValue: (value: string) => Promise<void>;
88
+ declare const expandAll: (value: string) => Promise<void>;
89
+ declare const addWebExtension: (relativePath: string) => Promise<void>;
90
+ declare const addNodeExtension: (relativePath: string) => Promise<void>;
91
+ declare const writeFile: (path: string, content: string) => Promise<void>;
92
+ declare const mkdir: (path: string) => Promise<void>;
93
+ declare const getTmpDir: ({ scheme }?: {
94
+ readonly scheme?: string;
95
+ }) => Promise<string>;
96
+ declare const chmod: (uri: string, permissions: any) => Promise<void>;
97
+ declare const createExecutable: (content: string) => Promise<string>;
98
+ declare const createExecutableFrom: (path: string) => Promise<string>;
99
+ declare const focusNext$3: () => Promise<void>;
100
+ declare const setValue: (value: string) => Promise<void>;
101
+ declare const setIconTheme: (id: string) => Promise<void>;
102
+ declare const open: () => never;
103
+ declare const handleInput: (value: string) => Promise<void>;
104
+ declare const handleClick$2: (x: number, y: number) => Promise<void>;
105
+ declare const handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
106
+ declare const handleDoubleClick: (x: number, y: number) => Promise<void>;
107
+ declare const focusNext$4: () => Promise<void>;
108
+ declare const focusPrevious$2: () => Promise<void>;
109
+ declare const focusFirst$2: () => Promise<void>;
110
+ declare const focusLast$2: () => Promise<void>;
111
+ declare const handleContextMenu$1: (button: number, x: number, y: number) => Promise<void>;
112
+ declare const press: (key: string) => Promise<void>;
113
+ declare const openUri: (uri: string) => Promise<void>;
114
+ declare const splitRight: () => Promise<void>;
115
+ declare const open$1: (id: string) => Promise<void>;
116
+ declare const getNodePath: () => Promise<string>;
117
+ declare const isFirefox: () => boolean;
118
+ declare const show$1: () => Promise<void>;
119
+ declare const open$2: () => Promise<void>;
120
+ declare const setValue$1: (value: string) => Promise<void>;
121
+ declare const focusNext$5: () => Promise<void>;
122
+ declare const focusIndex$1: (index: number) => Promise<void>;
123
+ declare const focusPrevious$3: () => Promise<void>;
124
+ declare const selectItem$1: (label: string) => Promise<void>;
125
+ declare const executeCommand: (label: string) => Promise<void>;
126
+ declare const setValue$2: (value: string) => Promise<void>;
127
+ declare const setReplaceValue: (value: string) => Promise<void>;
128
+ declare const setExcludeValue: (value: string) => Promise<void>;
129
+ declare const replaceAll: () => Promise<void>;
130
+ declare const setIncludeValue: (value: string) => Promise<void>;
131
+ declare const clearSearchResults: () => Promise<void>;
132
+ declare const dismissItem: () => Promise<void>;
133
+ declare const focusFirst$3: () => Promise<void>;
134
+ declare const focusIndex$2: (index: number) => Promise<void>;
135
+ declare const selectIndex: (index: number) => Promise<void>;
136
+ declare const focusNext$6: () => Promise<void>;
137
+ declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
138
+ declare const focusNextPage: () => Promise<void>;
139
+ declare const focusPreviousPage: () => Promise<void>;
140
+ declare const focusPrevious$4: () => Promise<void>;
141
+ declare const toggleSearchDetails: () => Promise<void>;
142
+ declare const toggleMatchCase: () => Promise<void>;
143
+ declare const toggleMatchWholeWord: () => Promise<void>;
144
+ declare const togglePreserveCase: () => Promise<void>;
145
+ declare const toggleUseRegularExpression: () => Promise<void>;
146
+ declare const toggleReplace: () => Promise<void>;
147
+ declare const update: (settings: any) => Promise<void>;
148
+ declare const open$3: (id: string) => Promise<void>;
149
+ declare const hide: () => Promise<void>;
150
+ declare const acceptInput: () => Promise<void>;
151
+ declare const handleInput$1: (text: string) => Promise<void>;
152
+ declare const update$1: () => Promise<void>;
153
+ declare const closeMenu: () => Promise<void>;
154
+ declare const focus$2: () => Promise<void>;
155
+ declare const focusFirst$4: () => Promise<void>;
156
+ declare const focusIndex$3: (index: number) => Promise<void>;
157
+ declare const focusLast$3: () => Promise<void>;
158
+ declare const focusNext$7: () => Promise<void>;
159
+ declare const focusPrevious$5: () => Promise<void>;
160
+ declare const handleKeyArrowDown: () => Promise<void>;
161
+ declare const handleKeyArrowLeft: () => Promise<void>;
162
+ declare const handleKeyArrowRight: () => Promise<void>;
163
+ declare const handleKeyArrowUp: () => Promise<void>;
164
+ declare const handleKeyEnd: () => Promise<void>;
165
+ declare const handleKeyHome: () => Promise<void>;
166
+ declare const handleKeySpace: () => Promise<void>;
167
+ declare const handleKeyEscape: () => Promise<void>;
168
+ declare const toggleIndex: (index: number) => Promise<void>;
169
+ declare const toggleMenu: () => Promise<void>;
170
+ declare const fromId: (webViewId: string) => Promise<any>;
171
+ declare const setPath: (path: string) => Promise<void>;
172
+
173
+ declare namespace Workspace {
174
+ export { setPath };
175
+ }
176
+ declare namespace About {
177
+ export { focusNext, focusPrevious, handleClickClose, handleClickCopy, handleClickOk, show };
178
+ }
179
+ declare namespace ActivityBar {
180
+ export { focus, focusFirst, focusLast, focusNext$1 as focusNext, focusPrevious$1 as focusPrevious, handleClick, handleContextMenu, selectCurrent };
181
+ }
182
+ declare namespace BaseUrl {
183
+ export { getBaseUrl };
184
+ }
185
+ declare namespace Command {
186
+ export { execute };
187
+ }
188
+ declare namespace ContextMenu {
189
+ export { selectItem };
190
+ }
191
+ declare namespace Editor {
192
+ export { addAllMissingImports, closeColorPicker, closeCompletionDetails, copy, copyLineDown, copyLineUp, cursorCharacterLeft, cursorCharacterRight, cursorDown, cursorEnd, cursorHome, cursorUp, cursorWordLeft, cursorWordPartLeft, cursorWordPartRight, cursorWordRight, deleteAllLeft, deleteAllRight, executeTabCompletion, findAllImplementations, findAllReferences, format, getText, goToDefinition, goToTypeDefinition, insertLineBreak, invokeBraceCompletion, invokeTabCompletion, openColorPicker, openCompletion, openCompletionDetails, openContextMenu, openEditorContextMenu, openFind, openFindWidget, openHover, openRename, openSourceActions, organizeImports, rename, selectAll, setCursor, setDeltaY, setSelections, shouldHaveText, showHover, sortImports, sourceActionsSelectCurrent, toggleBlockComment, toggleCompletionDetails, toggleLineComment, type };
193
+ }
194
+ declare namespace Explorer {
195
+ export { acceptEdit, cancelEdit, clickCurrent, expandAll, expandRecursively, focus$1 as focus, focusFirst$1 as focusFirst, focusIndex, focusLast$1 as focusLast, focusNext$2 as focusNext, handleArrowLeft, handleClick$1 as handleClick, newFile, openContextMenu$1 as openContextMenu, removeDirent, rename$1 as rename, updateEditingValue };
196
+ }
197
+ declare namespace Extension {
198
+ export { addNodeExtension, addWebExtension };
199
+ }
200
+ declare namespace FileSystem {
201
+ export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, writeFile };
202
+ }
203
+ declare namespace FindWidget {
204
+ export { focusNext$3 as focusNext, setValue };
205
+ }
206
+ declare namespace IconTheme {
207
+ export { setIconTheme };
208
+ }
209
+ declare namespace KeyBindingsEditor {
210
+ export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$2 as focusPrevious, handleClick$2 as handleClick, handleContextMenu$1 as handleContextMenu, handleDoubleClick, handleInput, handleWheel, open };
211
+ }
212
+ declare namespace KeyBoard {
213
+ export { press };
214
+ }
215
+ declare namespace Main {
216
+ export { openUri, splitRight };
217
+ }
218
+ declare namespace Panel {
219
+ export { open$1 as open };
220
+ }
221
+ declare namespace Platform {
222
+ export { getNodePath, isFirefox };
223
+ }
224
+ declare namespace Problems {
225
+ export { show$1 as show };
226
+ }
227
+ declare namespace QuickPick {
228
+ export { executeCommand, focusIndex$1 as focusIndex, focusNext$5 as focusNext, focusPrevious$3 as focusPrevious, open$2 as open, selectItem$1 as selectItem, setValue$1 as setValue };
229
+ }
230
+ declare namespace Search {
231
+ export { clearSearchResults, dismissItem, focusFirst$3 as focusFirst, focusIndex$2 as focusIndex, focusNext$6 as focusNext, focusNextPage, focusPrevious$4 as focusPrevious, focusPreviousPage, handleWheel$1 as handleWheel, replaceAll, selectIndex, setExcludeValue, setIncludeValue, setReplaceValue, setValue$2 as setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleSearchDetails, toggleUseRegularExpression };
232
+ }
233
+ declare namespace Settings {
234
+ export { update };
235
+ }
236
+ declare namespace SideBar {
237
+ export { hide, open$3 as open };
238
+ }
239
+ declare namespace SourceControl {
240
+ export { acceptInput, handleInput$1 as handleInput };
241
+ }
242
+ declare namespace StatusBar {
243
+ export { update$1 as update };
244
+ }
245
+ declare namespace TitleBarMenuBar {
246
+ export { closeMenu, focus$2 as focus, focusFirst$4 as focusFirst, focusIndex$3 as focusIndex, focusLast$3 as focusLast, focusNext$7 as focusNext, focusPrevious$5 as focusPrevious, handleKeyArrowDown, handleKeyArrowLeft, handleKeyArrowRight, handleKeyArrowUp, handleKeyEnd, handleKeyEscape, handleKeyHome, handleKeySpace, toggleIndex, toggleMenu };
247
+ }
248
+ declare namespace WebView {
249
+ export { fromId };
250
+ }
251
+
252
+ export interface Test {
253
+ readonly About: typeof About,
254
+ readonly ActivityBar: typeof ActivityBar,
255
+ readonly BaseUrl: typeof BaseUrl,
256
+ readonly Command: typeof Command,
257
+ readonly ContextMenu: typeof ContextMenu,
258
+ readonly Editor: typeof Editor,
259
+ readonly Explorer: typeof Explorer,
260
+ readonly Extension: typeof Extension,
261
+ readonly FileSystem: typeof FileSystem,
262
+ readonly FindWidget: typeof FindWidget,
263
+ readonly IconTheme: typeof IconTheme,
264
+ readonly KeyBindingsEditor: typeof KeyBindingsEditor,
265
+ readonly KeyBoard: typeof KeyBoard,
266
+ readonly Main: typeof Main,
267
+ readonly Panel: typeof Panel,
268
+ readonly Platform: typeof Platform,
269
+ readonly Problems: typeof Problems,
270
+ readonly QuickPick: typeof QuickPick,
271
+ readonly Search: typeof Search,
272
+ readonly Settings: typeof Settings,
273
+ readonly SideBar: typeof SideBar,
274
+ readonly SourceControl: typeof SourceControl,
275
+ readonly StatusBar: typeof StatusBar,
276
+ readonly TitleBarMenuBar: typeof TitleBarMenuBar,
277
+ readonly WebView: typeof WebView,
278
+ readonly Workspace: typeof Workspace,
279
+ readonly expect: any
280
+ readonly Locator: (selector: string) => any
281
+ }
282
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-with-playwright",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "description": "",
5
5
  "main": "src/main.js",
6
6
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  "@lvce-editor/json-rpc": "^5.4.0",
20
20
  "@lvce-editor/verror": "^1.6.0",
21
21
  "minimist": "^1.2.8",
22
- "@lvce-editor/test-with-playwright-worker": "2.6.0"
22
+ "@lvce-editor/test-with-playwright-worker": "2.7.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/jest": "^29.5.12",