@lvce-editor/test-with-playwright 2.11.0 → 2.13.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/api.d.ts +74 -22
- package/package.json +3 -3
package/api.d.ts
CHANGED
|
@@ -17,8 +17,17 @@ declare const selectCurrent: () => Promise<void>;
|
|
|
17
17
|
declare const getBaseUrl: () => string;
|
|
18
18
|
declare const execute: (id: string, ...args: readonly any[]) => Promise<any>;
|
|
19
19
|
declare const selectItem: (text: string) => Promise<void>;
|
|
20
|
+
declare const openIframeInspector: () => Promise<void>;
|
|
21
|
+
declare const openCacheFolder: () => Promise<void>;
|
|
22
|
+
declare const openConfigFolder: () => Promise<void>;
|
|
23
|
+
declare const openLogsFolder: () => Promise<void>;
|
|
24
|
+
declare const openProcessExplorer: () => Promise<void>;
|
|
25
|
+
declare const reloadColorTheme: () => Promise<void>;
|
|
26
|
+
declare const reloadIconTheme: () => Promise<void>;
|
|
27
|
+
declare const toggleDeveloperTools: () => Promise<void>;
|
|
20
28
|
declare const setCursor: (rowIndex: number, columnIndex: number) => Promise<void>;
|
|
21
29
|
declare const openCompletion: () => Promise<void>;
|
|
30
|
+
declare const closeCompletion: () => Promise<void>;
|
|
22
31
|
declare const openEditorContextMenu: () => Promise<void>;
|
|
23
32
|
declare const invokeTabCompletion: () => Promise<void>;
|
|
24
33
|
declare const executeTabCompletion: () => Promise<void>;
|
|
@@ -69,6 +78,8 @@ declare const rename: () => Promise<void>;
|
|
|
69
78
|
declare const showHover: () => Promise<void>;
|
|
70
79
|
declare const openRename: () => Promise<void>;
|
|
71
80
|
declare const shouldHaveText: (expectedText: string) => Promise<void>;
|
|
81
|
+
declare const selectIndex: (index: number) => Promise<void>;
|
|
82
|
+
declare const selectCurrentIndex: () => Promise<void>;
|
|
72
83
|
declare const openContextMenu$1: (index: number) => Promise<void>;
|
|
73
84
|
declare const focus$1: () => Promise<void>;
|
|
74
85
|
declare const focusNext$2: () => Promise<void>;
|
|
@@ -102,35 +113,62 @@ declare const createExecutableFrom: (path: string) => Promise<string>;
|
|
|
102
113
|
declare const focusNext$3: () => Promise<void>;
|
|
103
114
|
declare const setValue: (value: string) => Promise<void>;
|
|
104
115
|
declare const setIconTheme: (id: string) => Promise<void>;
|
|
116
|
+
declare const selectIndex$1: (index: number) => Promise<void>;
|
|
117
|
+
declare const focusNext$4: () => Promise<void>;
|
|
118
|
+
declare const focusPrevious$2: () => Promise<void>;
|
|
119
|
+
declare const focusFirst$2: () => Promise<void>;
|
|
120
|
+
declare const focusLast$2: () => Promise<void>;
|
|
105
121
|
declare const open$1: () => Promise<void>;
|
|
106
122
|
declare const handleInput: (value: string) => Promise<void>;
|
|
107
123
|
declare const handleClick$2: (x: number, y: number) => Promise<void>;
|
|
108
124
|
declare const handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
109
125
|
declare const handleDoubleClick: (x: number, y: number) => Promise<void>;
|
|
110
|
-
declare const focusNext$
|
|
111
|
-
declare const focusPrevious$
|
|
112
|
-
declare const focusFirst$
|
|
113
|
-
declare const focusLast$
|
|
126
|
+
declare const focusNext$5: () => Promise<void>;
|
|
127
|
+
declare const focusPrevious$3: () => Promise<void>;
|
|
128
|
+
declare const focusFirst$3: () => Promise<void>;
|
|
129
|
+
declare const focusLast$3: () => Promise<void>;
|
|
114
130
|
declare const toggleRecordingKeys: () => Promise<void>;
|
|
115
131
|
declare const startRecordingKeys: () => Promise<void>;
|
|
116
132
|
declare const clearInput: () => Promise<void>;
|
|
117
133
|
declare const sortByPrecedence: () => Promise<void>;
|
|
118
134
|
declare const stopRecordingKeys: () => Promise<void>;
|
|
119
135
|
declare const handleContextMenu$1: (button: number, x: number, y: number) => Promise<void>;
|
|
136
|
+
declare const copyCommandId: () => Promise<void>;
|
|
137
|
+
declare const copyCommandTitle: () => Promise<void>;
|
|
138
|
+
declare const addKeyBinding: () => Promise<void>;
|
|
139
|
+
declare const removeKeyBinding: () => Promise<void>;
|
|
140
|
+
declare const changeWhenExpression: () => Promise<void>;
|
|
141
|
+
declare const showSameKeyBindings: () => Promise<void>;
|
|
142
|
+
declare const resetKeyBinding: () => Promise<void>;
|
|
120
143
|
declare const press: (key: string) => Promise<void>;
|
|
121
144
|
declare const openUri: (uri: string) => Promise<void>;
|
|
122
145
|
declare const splitRight: () => Promise<void>;
|
|
123
146
|
declare const openKeyBindings: () => Promise<void>;
|
|
147
|
+
declare const closeAllEditors: () => Promise<void>;
|
|
148
|
+
declare const closeTabsLeft: () => Promise<void>;
|
|
149
|
+
declare const closeTabsRight: () => Promise<void>;
|
|
150
|
+
declare const closeOthers: () => Promise<void>;
|
|
151
|
+
declare const closeActiveEditor: () => Promise<void>;
|
|
152
|
+
declare const focusFirst$4: () => Promise<void>;
|
|
153
|
+
declare const focusNext$6: () => Promise<void>;
|
|
154
|
+
declare const focusPrevious$4: () => Promise<void>;
|
|
155
|
+
declare const focusLast$4: () => Promise<void>;
|
|
124
156
|
declare const open$2: (id: string) => Promise<void>;
|
|
125
157
|
declare const getNodePath: () => Promise<string>;
|
|
126
158
|
declare const isFirefox: () => boolean;
|
|
127
159
|
declare const show$1: () => Promise<void>;
|
|
128
160
|
declare const open$3: () => Promise<void>;
|
|
161
|
+
declare const handleInput$1: (value: string) => Promise<void>;
|
|
162
|
+
declare const handleClickAt: (x: number, y: number) => Promise<void>;
|
|
129
163
|
declare const setValue$1: (value: string) => Promise<void>;
|
|
130
|
-
declare const focusNext$
|
|
164
|
+
declare const focusNext$7: () => Promise<void>;
|
|
165
|
+
declare const focusFirst$5: () => Promise<void>;
|
|
166
|
+
declare const focusLast$5: () => Promise<void>;
|
|
131
167
|
declare const focusIndex$1: (index: number) => Promise<void>;
|
|
132
|
-
declare const focusPrevious$
|
|
168
|
+
declare const focusPrevious$5: () => Promise<void>;
|
|
133
169
|
declare const selectItem$1: (label: string) => Promise<void>;
|
|
170
|
+
declare const selectIndex$2: (index: number) => Promise<void>;
|
|
171
|
+
declare const selectCurrentIndex$1: () => Promise<void>;
|
|
134
172
|
declare const executeCommand: (label: string) => Promise<void>;
|
|
135
173
|
declare const setValue$2: (value: string) => Promise<void>;
|
|
136
174
|
declare const setReplaceValue: (value: string) => Promise<void>;
|
|
@@ -138,15 +176,17 @@ declare const setExcludeValue: (value: string) => Promise<void>;
|
|
|
138
176
|
declare const replaceAll: () => Promise<void>;
|
|
139
177
|
declare const setIncludeValue: (value: string) => Promise<void>;
|
|
140
178
|
declare const clearSearchResults: () => Promise<void>;
|
|
179
|
+
declare const openDetails: () => Promise<void>;
|
|
180
|
+
declare const collapseDetails: () => Promise<void>;
|
|
141
181
|
declare const dismissItem: () => Promise<void>;
|
|
142
|
-
declare const focusFirst$
|
|
182
|
+
declare const focusFirst$6: () => Promise<void>;
|
|
143
183
|
declare const focusIndex$2: (index: number) => Promise<void>;
|
|
144
|
-
declare const selectIndex: (index: number) => Promise<void>;
|
|
145
|
-
declare const focusNext$
|
|
184
|
+
declare const selectIndex$3: (index: number) => Promise<void>;
|
|
185
|
+
declare const focusNext$8: () => Promise<void>;
|
|
146
186
|
declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
147
187
|
declare const focusNextPage: () => Promise<void>;
|
|
148
188
|
declare const focusPreviousPage: () => Promise<void>;
|
|
149
|
-
declare const focusPrevious$
|
|
189
|
+
declare const focusPrevious$6: () => Promise<void>;
|
|
150
190
|
declare const toggleSearchDetails: () => Promise<void>;
|
|
151
191
|
declare const toggleMatchCase: () => Promise<void>;
|
|
152
192
|
declare const toggleMatchWholeWord: () => Promise<void>;
|
|
@@ -157,15 +197,15 @@ declare const update: (settings: any) => Promise<void>;
|
|
|
157
197
|
declare const open$4: (id: string) => Promise<void>;
|
|
158
198
|
declare const hide: () => Promise<void>;
|
|
159
199
|
declare const acceptInput: () => Promise<void>;
|
|
160
|
-
declare const handleInput$
|
|
200
|
+
declare const handleInput$2: (text: string) => Promise<void>;
|
|
161
201
|
declare const update$1: () => Promise<void>;
|
|
162
202
|
declare const closeMenu: () => Promise<void>;
|
|
163
203
|
declare const focus$2: () => Promise<void>;
|
|
164
|
-
declare const focusFirst$
|
|
204
|
+
declare const focusFirst$7: () => Promise<void>;
|
|
165
205
|
declare const focusIndex$3: (index: number) => Promise<void>;
|
|
166
|
-
declare const focusLast$
|
|
167
|
-
declare const focusNext$
|
|
168
|
-
declare const focusPrevious$
|
|
206
|
+
declare const focusLast$6: () => Promise<void>;
|
|
207
|
+
declare const focusNext$9: () => Promise<void>;
|
|
208
|
+
declare const focusPrevious$7: () => Promise<void>;
|
|
169
209
|
declare const handleKeyArrowDown: () => Promise<void>;
|
|
170
210
|
declare const handleKeyArrowLeft: () => Promise<void>;
|
|
171
211
|
declare const handleKeyArrowRight: () => Promise<void>;
|
|
@@ -197,8 +237,14 @@ declare namespace Command {
|
|
|
197
237
|
declare namespace ContextMenu {
|
|
198
238
|
export { selectItem };
|
|
199
239
|
}
|
|
240
|
+
declare namespace Developer {
|
|
241
|
+
export { openCacheFolder, openConfigFolder, openIframeInspector, openLogsFolder, openProcessExplorer, reloadColorTheme, reloadIconTheme, toggleDeveloperTools };
|
|
242
|
+
}
|
|
200
243
|
declare namespace Editor {
|
|
201
|
-
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 };
|
|
244
|
+
export { addAllMissingImports, closeColorPicker, closeCompletion, 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 };
|
|
245
|
+
}
|
|
246
|
+
declare namespace EditorCompletion {
|
|
247
|
+
export { selectCurrentIndex, selectIndex };
|
|
202
248
|
}
|
|
203
249
|
declare namespace Explorer {
|
|
204
250
|
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 };
|
|
@@ -218,14 +264,17 @@ declare namespace FindWidget {
|
|
|
218
264
|
declare namespace IconTheme {
|
|
219
265
|
export { setIconTheme };
|
|
220
266
|
}
|
|
267
|
+
declare namespace IframeInspector {
|
|
268
|
+
export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$2 as focusPrevious, selectIndex$1 as selectIndex };
|
|
269
|
+
}
|
|
221
270
|
declare namespace KeyBindingsEditor {
|
|
222
|
-
export { clearInput, focusFirst$
|
|
271
|
+
export { addKeyBinding, changeWhenExpression, clearInput, copyCommandId, copyCommandTitle, focusFirst$3 as focusFirst, focusLast$3 as focusLast, focusNext$5 as focusNext, focusPrevious$3 as focusPrevious, handleClick$2 as handleClick, handleContextMenu$1 as handleContextMenu, handleDoubleClick, handleInput, handleWheel, open$1 as open, removeKeyBinding, resetKeyBinding, showSameKeyBindings, sortByPrecedence, startRecordingKeys, stopRecordingKeys, toggleRecordingKeys };
|
|
223
272
|
}
|
|
224
273
|
declare namespace KeyBoard {
|
|
225
274
|
export { press };
|
|
226
275
|
}
|
|
227
276
|
declare namespace Main {
|
|
228
|
-
export { openKeyBindings, openUri, splitRight };
|
|
277
|
+
export { closeActiveEditor, closeAllEditors, closeOthers, closeTabsLeft, closeTabsRight, focusFirst$4 as focusFirst, focusLast$4 as focusLast, focusNext$6 as focusNext, focusPrevious$4 as focusPrevious, openKeyBindings, openUri, splitRight };
|
|
229
278
|
}
|
|
230
279
|
declare namespace Panel {
|
|
231
280
|
export { open$2 as open };
|
|
@@ -237,10 +286,10 @@ declare namespace Problems {
|
|
|
237
286
|
export { show$1 as show };
|
|
238
287
|
}
|
|
239
288
|
declare namespace QuickPick {
|
|
240
|
-
export { executeCommand, focusIndex$1 as focusIndex,
|
|
289
|
+
export { executeCommand, focusFirst$5 as focusFirst, focusIndex$1 as focusIndex, focusLast$5 as focusLast, focusNext$7 as focusNext, focusPrevious$5 as focusPrevious, handleClickAt, handleInput$1 as handleInput, open$3 as open, selectCurrentIndex$1 as selectCurrentIndex, selectIndex$2 as selectIndex, selectItem$1 as selectItem, setValue$1 as setValue };
|
|
241
290
|
}
|
|
242
291
|
declare namespace Search {
|
|
243
|
-
export { clearSearchResults, dismissItem, focusFirst$
|
|
292
|
+
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$2 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$6 as focusPrevious, focusPreviousPage, handleWheel$1 as handleWheel, openDetails, replaceAll, selectIndex$3 as selectIndex, setExcludeValue, setIncludeValue, setReplaceValue, setValue$2 as setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleSearchDetails, toggleUseRegularExpression };
|
|
244
293
|
}
|
|
245
294
|
declare namespace Settings {
|
|
246
295
|
export { update };
|
|
@@ -249,13 +298,13 @@ declare namespace SideBar {
|
|
|
249
298
|
export { hide, open$4 as open };
|
|
250
299
|
}
|
|
251
300
|
declare namespace SourceControl {
|
|
252
|
-
export { acceptInput, handleInput$
|
|
301
|
+
export { acceptInput, handleInput$2 as handleInput };
|
|
253
302
|
}
|
|
254
303
|
declare namespace StatusBar {
|
|
255
304
|
export { update$1 as update };
|
|
256
305
|
}
|
|
257
306
|
declare namespace TitleBarMenuBar {
|
|
258
|
-
export { closeMenu, focus$2 as focus, focusFirst$
|
|
307
|
+
export { closeMenu, focus$2 as focus, focusFirst$7 as focusFirst, focusIndex$3 as focusIndex, focusLast$6 as focusLast, focusNext$9 as focusNext, focusPrevious$7 as focusPrevious, handleKeyArrowDown, handleKeyArrowLeft, handleKeyArrowRight, handleKeyArrowUp, handleKeyEnd, handleKeyEscape, handleKeyHome, handleKeySpace, toggleIndex, toggleMenu };
|
|
259
308
|
}
|
|
260
309
|
declare namespace WebView {
|
|
261
310
|
export { fromId };
|
|
@@ -267,13 +316,16 @@ export interface TestApi {
|
|
|
267
316
|
readonly BaseUrl: typeof BaseUrl,
|
|
268
317
|
readonly Command: typeof Command,
|
|
269
318
|
readonly ContextMenu: typeof ContextMenu,
|
|
319
|
+
readonly Developer: typeof Developer,
|
|
270
320
|
readonly Editor: typeof Editor,
|
|
321
|
+
readonly EditorCompletion: typeof EditorCompletion,
|
|
271
322
|
readonly Explorer: typeof Explorer,
|
|
272
323
|
readonly Extension: typeof Extension,
|
|
273
324
|
readonly ExtensionDetail: typeof ExtensionDetail,
|
|
274
325
|
readonly FileSystem: typeof FileSystem,
|
|
275
326
|
readonly FindWidget: typeof FindWidget,
|
|
276
327
|
readonly IconTheme: typeof IconTheme,
|
|
328
|
+
readonly IframeInspector: typeof IframeInspector,
|
|
277
329
|
readonly KeyBindingsEditor: typeof KeyBindingsEditor,
|
|
278
330
|
readonly KeyBoard: typeof KeyBoard,
|
|
279
331
|
readonly Main: typeof Main,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/test-with-playwright",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -19,10 +19,10 @@
|
|
|
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.
|
|
22
|
+
"@lvce-editor/test-with-playwright-worker": "2.13.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@types/jest": "^29.5.
|
|
25
|
+
"@types/jest": "^29.5.14",
|
|
26
26
|
"jest": "^29.7.0"
|
|
27
27
|
},
|
|
28
28
|
"types": "api.d.ts"
|