@lvce-editor/test-with-playwright 2.12.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.
Files changed (2) hide show
  1. package/api.d.ts +54 -20
  2. package/package.json +2 -2
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>;
@@ -105,15 +113,20 @@ declare const createExecutableFrom: (path: string) => Promise<string>;
105
113
  declare const focusNext$3: () => Promise<void>;
106
114
  declare const setValue: (value: string) => Promise<void>;
107
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>;
108
121
  declare const open$1: () => Promise<void>;
109
122
  declare const handleInput: (value: string) => Promise<void>;
110
123
  declare const handleClick$2: (x: number, y: number) => Promise<void>;
111
124
  declare const handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
112
125
  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>;
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>;
117
130
  declare const toggleRecordingKeys: () => Promise<void>;
118
131
  declare const startRecordingKeys: () => Promise<void>;
119
132
  declare const clearInput: () => Promise<void>;
@@ -131,18 +144,31 @@ declare const press: (key: string) => Promise<void>;
131
144
  declare const openUri: (uri: string) => Promise<void>;
132
145
  declare const splitRight: () => Promise<void>;
133
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>;
134
156
  declare const open$2: (id: string) => Promise<void>;
135
157
  declare const getNodePath: () => Promise<string>;
136
158
  declare const isFirefox: () => boolean;
137
159
  declare const show$1: () => Promise<void>;
138
160
  declare const open$3: () => Promise<void>;
139
161
  declare const handleInput$1: (value: string) => Promise<void>;
162
+ declare const handleClickAt: (x: number, y: number) => Promise<void>;
140
163
  declare const setValue$1: (value: string) => Promise<void>;
141
- declare const focusNext$5: () => Promise<void>;
164
+ declare const focusNext$7: () => Promise<void>;
165
+ declare const focusFirst$5: () => Promise<void>;
166
+ declare const focusLast$5: () => Promise<void>;
142
167
  declare const focusIndex$1: (index: number) => Promise<void>;
143
- declare const focusPrevious$3: () => Promise<void>;
168
+ declare const focusPrevious$5: () => Promise<void>;
144
169
  declare const selectItem$1: (label: string) => Promise<void>;
145
- declare const selectIndex$1: (index: number) => Promise<void>;
170
+ declare const selectIndex$2: (index: number) => Promise<void>;
171
+ declare const selectCurrentIndex$1: () => Promise<void>;
146
172
  declare const executeCommand: (label: string) => Promise<void>;
147
173
  declare const setValue$2: (value: string) => Promise<void>;
148
174
  declare const setReplaceValue: (value: string) => Promise<void>;
@@ -153,14 +179,14 @@ declare const clearSearchResults: () => Promise<void>;
153
179
  declare const openDetails: () => Promise<void>;
154
180
  declare const collapseDetails: () => Promise<void>;
155
181
  declare const dismissItem: () => Promise<void>;
156
- declare const focusFirst$3: () => Promise<void>;
182
+ declare const focusFirst$6: () => Promise<void>;
157
183
  declare const focusIndex$2: (index: number) => Promise<void>;
158
- declare const selectIndex$2: (index: number) => Promise<void>;
159
- declare const focusNext$6: () => Promise<void>;
184
+ declare const selectIndex$3: (index: number) => Promise<void>;
185
+ declare const focusNext$8: () => Promise<void>;
160
186
  declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
161
187
  declare const focusNextPage: () => Promise<void>;
162
188
  declare const focusPreviousPage: () => Promise<void>;
163
- declare const focusPrevious$4: () => Promise<void>;
189
+ declare const focusPrevious$6: () => Promise<void>;
164
190
  declare const toggleSearchDetails: () => Promise<void>;
165
191
  declare const toggleMatchCase: () => Promise<void>;
166
192
  declare const toggleMatchWholeWord: () => Promise<void>;
@@ -175,11 +201,11 @@ declare const handleInput$2: (text: string) => Promise<void>;
175
201
  declare const update$1: () => Promise<void>;
176
202
  declare const closeMenu: () => Promise<void>;
177
203
  declare const focus$2: () => Promise<void>;
178
- declare const focusFirst$4: () => Promise<void>;
204
+ declare const focusFirst$7: () => Promise<void>;
179
205
  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>;
206
+ declare const focusLast$6: () => Promise<void>;
207
+ declare const focusNext$9: () => Promise<void>;
208
+ declare const focusPrevious$7: () => Promise<void>;
183
209
  declare const handleKeyArrowDown: () => Promise<void>;
184
210
  declare const handleKeyArrowLeft: () => Promise<void>;
185
211
  declare const handleKeyArrowRight: () => Promise<void>;
@@ -211,6 +237,9 @@ declare namespace Command {
211
237
  declare namespace ContextMenu {
212
238
  export { selectItem };
213
239
  }
240
+ declare namespace Developer {
241
+ export { openCacheFolder, openConfigFolder, openIframeInspector, openLogsFolder, openProcessExplorer, reloadColorTheme, reloadIconTheme, toggleDeveloperTools };
242
+ }
214
243
  declare namespace Editor {
215
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 };
216
245
  }
@@ -235,14 +264,17 @@ declare namespace FindWidget {
235
264
  declare namespace IconTheme {
236
265
  export { setIconTheme };
237
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
+ }
238
270
  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 };
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 };
240
272
  }
241
273
  declare namespace KeyBoard {
242
274
  export { press };
243
275
  }
244
276
  declare namespace Main {
245
- 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 };
246
278
  }
247
279
  declare namespace Panel {
248
280
  export { open$2 as open };
@@ -254,10 +286,10 @@ declare namespace Problems {
254
286
  export { show$1 as show };
255
287
  }
256
288
  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 };
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 };
258
290
  }
259
291
  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 };
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 };
261
293
  }
262
294
  declare namespace Settings {
263
295
  export { update };
@@ -272,7 +304,7 @@ declare namespace StatusBar {
272
304
  export { update$1 as update };
273
305
  }
274
306
  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 };
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 };
276
308
  }
277
309
  declare namespace WebView {
278
310
  export { fromId };
@@ -284,6 +316,7 @@ export interface TestApi {
284
316
  readonly BaseUrl: typeof BaseUrl,
285
317
  readonly Command: typeof Command,
286
318
  readonly ContextMenu: typeof ContextMenu,
319
+ readonly Developer: typeof Developer,
287
320
  readonly Editor: typeof Editor,
288
321
  readonly EditorCompletion: typeof EditorCompletion,
289
322
  readonly Explorer: typeof Explorer,
@@ -292,6 +325,7 @@ export interface TestApi {
292
325
  readonly FileSystem: typeof FileSystem,
293
326
  readonly FindWidget: typeof FindWidget,
294
327
  readonly IconTheme: typeof IconTheme,
328
+ readonly IframeInspector: typeof IframeInspector,
295
329
  readonly KeyBindingsEditor: typeof KeyBindingsEditor,
296
330
  readonly KeyBoard: typeof KeyBoard,
297
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.12.0",
3
+ "version": "2.13.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.12.0"
22
+ "@lvce-editor/test-with-playwright-worker": "2.13.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/jest": "^29.5.14",