@lvce-editor/test-with-playwright 2.12.0 → 2.14.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 +61 -22
  2. package/package.json +3 -3
package/api.d.ts CHANGED
@@ -17,6 +17,14 @@ 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>;
22
30
  declare const closeCompletion: () => Promise<void>;
@@ -75,6 +83,7 @@ declare const selectCurrentIndex: () => Promise<void>;
75
83
  declare const openContextMenu$1: (index: number) => Promise<void>;
76
84
  declare const focus$1: () => Promise<void>;
77
85
  declare const focusNext$2: () => Promise<void>;
86
+ declare const refresh: () => Promise<void>;
78
87
  declare const focusIndex: (index: number) => Promise<void>;
79
88
  declare const clickCurrent: () => Promise<void>;
80
89
  declare const handleArrowLeft: () => Promise<void>;
@@ -83,8 +92,11 @@ declare const focusFirst$1: () => Promise<void>;
83
92
  declare const removeDirent: () => Promise<void>;
84
93
  declare const expandRecursively: () => Promise<void>;
85
94
  declare const newFile: () => Promise<void>;
95
+ declare const newFolder: () => Promise<void>;
86
96
  declare const handleClick$1: (index: number) => Promise<void>;
97
+ declare const handleDrop: (x: number, y: number, fileIds: readonly number[], fileList: FileList | readonly File[]) => Promise<void>;
87
98
  declare const rename$1: () => Promise<void>;
99
+ declare const renameDirent: () => Promise<void>;
88
100
  declare const cancelEdit: () => Promise<void>;
89
101
  declare const acceptEdit: () => Promise<void>;
90
102
  declare const updateEditingValue: (value: string) => Promise<void>;
@@ -96,6 +108,7 @@ declare const selectTab: (name: string) => Promise<void>;
96
108
  declare const open: (extensionId: string) => Promise<void>;
97
109
  declare const writeFile: (path: string, content: string) => Promise<void>;
98
110
  declare const mkdir: (path: string) => Promise<void>;
111
+ declare const remove: (uri: string) => Promise<void>;
99
112
  declare const getTmpDir: ({ scheme }?: {
100
113
  readonly scheme?: string;
101
114
  }) => Promise<string>;
@@ -105,15 +118,20 @@ declare const createExecutableFrom: (path: string) => Promise<string>;
105
118
  declare const focusNext$3: () => Promise<void>;
106
119
  declare const setValue: (value: string) => Promise<void>;
107
120
  declare const setIconTheme: (id: string) => Promise<void>;
121
+ declare const selectIndex$1: (index: number) => Promise<void>;
122
+ declare const focusNext$4: () => Promise<void>;
123
+ declare const focusPrevious$2: () => Promise<void>;
124
+ declare const focusFirst$2: () => Promise<void>;
125
+ declare const focusLast$2: () => Promise<void>;
108
126
  declare const open$1: () => Promise<void>;
109
127
  declare const handleInput: (value: string) => Promise<void>;
110
128
  declare const handleClick$2: (x: number, y: number) => Promise<void>;
111
129
  declare const handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
112
130
  declare const handleDoubleClick: (x: number, y: number) => Promise<void>;
113
- declare const focusNext$4: () => Promise<void>;
114
- declare const focusPrevious$2: () => Promise<void>;
115
- declare const focusFirst$2: () => Promise<void>;
116
- declare const focusLast$2: () => Promise<void>;
131
+ declare const focusNext$5: () => Promise<void>;
132
+ declare const focusPrevious$3: () => Promise<void>;
133
+ declare const focusFirst$3: () => Promise<void>;
134
+ declare const focusLast$3: () => Promise<void>;
117
135
  declare const toggleRecordingKeys: () => Promise<void>;
118
136
  declare const startRecordingKeys: () => Promise<void>;
119
137
  declare const clearInput: () => Promise<void>;
@@ -131,18 +149,31 @@ declare const press: (key: string) => Promise<void>;
131
149
  declare const openUri: (uri: string) => Promise<void>;
132
150
  declare const splitRight: () => Promise<void>;
133
151
  declare const openKeyBindings: () => Promise<void>;
152
+ declare const closeAllEditors: () => Promise<void>;
153
+ declare const closeTabsLeft: () => Promise<void>;
154
+ declare const closeTabsRight: () => Promise<void>;
155
+ declare const closeOthers: () => Promise<void>;
156
+ declare const closeActiveEditor: () => Promise<void>;
157
+ declare const focusFirst$4: () => Promise<void>;
158
+ declare const focusNext$6: () => Promise<void>;
159
+ declare const focusPrevious$4: () => Promise<void>;
160
+ declare const focusLast$4: () => Promise<void>;
134
161
  declare const open$2: (id: string) => Promise<void>;
135
162
  declare const getNodePath: () => Promise<string>;
136
163
  declare const isFirefox: () => boolean;
137
164
  declare const show$1: () => Promise<void>;
138
165
  declare const open$3: () => Promise<void>;
139
166
  declare const handleInput$1: (value: string) => Promise<void>;
167
+ declare const handleClickAt: (x: number, y: number) => Promise<void>;
140
168
  declare const setValue$1: (value: string) => Promise<void>;
141
- declare const focusNext$5: () => Promise<void>;
169
+ declare const focusNext$7: () => Promise<void>;
170
+ declare const focusFirst$5: () => Promise<void>;
171
+ declare const focusLast$5: () => Promise<void>;
142
172
  declare const focusIndex$1: (index: number) => Promise<void>;
143
- declare const focusPrevious$3: () => Promise<void>;
173
+ declare const focusPrevious$5: () => Promise<void>;
144
174
  declare const selectItem$1: (label: string) => Promise<void>;
145
- declare const selectIndex$1: (index: number) => Promise<void>;
175
+ declare const selectIndex$2: (index: number) => Promise<void>;
176
+ declare const selectCurrentIndex$1: () => Promise<void>;
146
177
  declare const executeCommand: (label: string) => Promise<void>;
147
178
  declare const setValue$2: (value: string) => Promise<void>;
148
179
  declare const setReplaceValue: (value: string) => Promise<void>;
@@ -153,14 +184,14 @@ declare const clearSearchResults: () => Promise<void>;
153
184
  declare const openDetails: () => Promise<void>;
154
185
  declare const collapseDetails: () => Promise<void>;
155
186
  declare const dismissItem: () => Promise<void>;
156
- declare const focusFirst$3: () => Promise<void>;
187
+ declare const focusFirst$6: () => Promise<void>;
157
188
  declare const focusIndex$2: (index: number) => Promise<void>;
158
- declare const selectIndex$2: (index: number) => Promise<void>;
159
- declare const focusNext$6: () => Promise<void>;
189
+ declare const selectIndex$3: (index: number) => Promise<void>;
190
+ declare const focusNext$8: () => Promise<void>;
160
191
  declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
161
192
  declare const focusNextPage: () => Promise<void>;
162
193
  declare const focusPreviousPage: () => Promise<void>;
163
- declare const focusPrevious$4: () => Promise<void>;
194
+ declare const focusPrevious$6: () => Promise<void>;
164
195
  declare const toggleSearchDetails: () => Promise<void>;
165
196
  declare const toggleMatchCase: () => Promise<void>;
166
197
  declare const toggleMatchWholeWord: () => Promise<void>;
@@ -175,11 +206,11 @@ declare const handleInput$2: (text: string) => Promise<void>;
175
206
  declare const update$1: () => Promise<void>;
176
207
  declare const closeMenu: () => Promise<void>;
177
208
  declare const focus$2: () => Promise<void>;
178
- declare const focusFirst$4: () => Promise<void>;
209
+ declare const focusFirst$7: () => Promise<void>;
179
210
  declare const focusIndex$3: (index: number) => Promise<void>;
180
- declare const focusLast$3: () => Promise<void>;
181
- declare const focusNext$7: () => Promise<void>;
182
- declare const focusPrevious$5: () => Promise<void>;
211
+ declare const focusLast$6: () => Promise<void>;
212
+ declare const focusNext$9: () => Promise<void>;
213
+ declare const focusPrevious$7: () => Promise<void>;
183
214
  declare const handleKeyArrowDown: () => Promise<void>;
184
215
  declare const handleKeyArrowLeft: () => Promise<void>;
185
216
  declare const handleKeyArrowRight: () => Promise<void>;
@@ -211,6 +242,9 @@ declare namespace Command {
211
242
  declare namespace ContextMenu {
212
243
  export { selectItem };
213
244
  }
245
+ declare namespace Developer {
246
+ export { openCacheFolder, openConfigFolder, openIframeInspector, openLogsFolder, openProcessExplorer, reloadColorTheme, reloadIconTheme, toggleDeveloperTools };
247
+ }
214
248
  declare namespace Editor {
215
249
  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 };
216
250
  }
@@ -218,7 +252,7 @@ declare namespace EditorCompletion {
218
252
  export { selectCurrentIndex, selectIndex };
219
253
  }
220
254
  declare namespace Explorer {
221
- 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 };
255
+ 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, handleDrop, newFile, newFolder, openContextMenu$1 as openContextMenu, refresh, removeDirent, rename$1 as rename, renameDirent, updateEditingValue };
222
256
  }
223
257
  declare namespace Extension {
224
258
  export { addNodeExtension, addWebExtension };
@@ -227,7 +261,7 @@ declare namespace ExtensionDetail {
227
261
  export { open, selectFeature, selectTab };
228
262
  }
229
263
  declare namespace FileSystem {
230
- export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, writeFile };
264
+ export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, remove, writeFile };
231
265
  }
232
266
  declare namespace FindWidget {
233
267
  export { focusNext$3 as focusNext, setValue };
@@ -235,14 +269,17 @@ declare namespace FindWidget {
235
269
  declare namespace IconTheme {
236
270
  export { setIconTheme };
237
271
  }
272
+ declare namespace IframeInspector {
273
+ export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$2 as focusPrevious, selectIndex$1 as selectIndex };
274
+ }
238
275
  declare namespace KeyBindingsEditor {
239
- export { addKeyBinding, changeWhenExpression, clearInput, copyCommandId, copyCommandTitle, 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$1 as open, removeKeyBinding, resetKeyBinding, showSameKeyBindings, sortByPrecedence, startRecordingKeys, stopRecordingKeys, toggleRecordingKeys };
276
+ 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 };
240
277
  }
241
278
  declare namespace KeyBoard {
242
279
  export { press };
243
280
  }
244
281
  declare namespace Main {
245
- export { openKeyBindings, openUri, splitRight };
282
+ 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 };
246
283
  }
247
284
  declare namespace Panel {
248
285
  export { open$2 as open };
@@ -254,10 +291,10 @@ declare namespace Problems {
254
291
  export { show$1 as show };
255
292
  }
256
293
  declare namespace QuickPick {
257
- export { executeCommand, focusIndex$1 as focusIndex, focusNext$5 as focusNext, focusPrevious$3 as focusPrevious, handleInput$1 as handleInput, open$3 as open, selectIndex$1 as selectIndex, selectItem$1 as selectItem, setValue$1 as setValue };
294
+ 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 };
258
295
  }
259
296
  declare namespace Search {
260
- export { clearSearchResults, collapseDetails, dismissItem, focusFirst$3 as focusFirst, focusIndex$2 as focusIndex, focusNext$6 as focusNext, focusNextPage, focusPrevious$4 as focusPrevious, focusPreviousPage, handleWheel$1 as handleWheel, openDetails, replaceAll, selectIndex$2 as selectIndex, setExcludeValue, setIncludeValue, setReplaceValue, setValue$2 as setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleSearchDetails, toggleUseRegularExpression };
297
+ 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 };
261
298
  }
262
299
  declare namespace Settings {
263
300
  export { update };
@@ -272,7 +309,7 @@ declare namespace StatusBar {
272
309
  export { update$1 as update };
273
310
  }
274
311
  declare namespace TitleBarMenuBar {
275
- 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 };
312
+ 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 };
276
313
  }
277
314
  declare namespace WebView {
278
315
  export { fromId };
@@ -284,6 +321,7 @@ export interface TestApi {
284
321
  readonly BaseUrl: typeof BaseUrl,
285
322
  readonly Command: typeof Command,
286
323
  readonly ContextMenu: typeof ContextMenu,
324
+ readonly Developer: typeof Developer,
287
325
  readonly Editor: typeof Editor,
288
326
  readonly EditorCompletion: typeof EditorCompletion,
289
327
  readonly Explorer: typeof Explorer,
@@ -292,6 +330,7 @@ export interface TestApi {
292
330
  readonly FileSystem: typeof FileSystem,
293
331
  readonly FindWidget: typeof FindWidget,
294
332
  readonly IconTheme: typeof IconTheme,
333
+ readonly IframeInspector: typeof IframeInspector,
295
334
  readonly KeyBindingsEditor: typeof KeyBindingsEditor,
296
335
  readonly KeyBoard: typeof KeyBoard,
297
336
  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.12.0",
3
+ "version": "2.14.0",
4
4
  "description": "",
5
5
  "main": "src/main.js",
6
6
  "type": "module",
@@ -15,11 +15,11 @@
15
15
  "dependencies": {
16
16
  "@lvce-editor/assert": "^1.3.0",
17
17
  "@lvce-editor/command": "^1.2.0",
18
- "@lvce-editor/ipc": "^13.7.0",
18
+ "@lvce-editor/ipc": "^13.8.0",
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.12.0"
22
+ "@lvce-editor/test-with-playwright-worker": "2.14.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/jest": "^29.5.14",