@lvce-editor/test-with-playwright 2.11.0 → 2.12.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 +25 -7
- package/package.json +3 -3
package/api.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ declare const execute: (id: string, ...args: readonly any[]) => Promise<any>;
|
|
|
19
19
|
declare const selectItem: (text: string) => Promise<void>;
|
|
20
20
|
declare const setCursor: (rowIndex: number, columnIndex: number) => Promise<void>;
|
|
21
21
|
declare const openCompletion: () => Promise<void>;
|
|
22
|
+
declare const closeCompletion: () => Promise<void>;
|
|
22
23
|
declare const openEditorContextMenu: () => Promise<void>;
|
|
23
24
|
declare const invokeTabCompletion: () => Promise<void>;
|
|
24
25
|
declare const executeTabCompletion: () => Promise<void>;
|
|
@@ -69,6 +70,8 @@ declare const rename: () => Promise<void>;
|
|
|
69
70
|
declare const showHover: () => Promise<void>;
|
|
70
71
|
declare const openRename: () => Promise<void>;
|
|
71
72
|
declare const shouldHaveText: (expectedText: string) => Promise<void>;
|
|
73
|
+
declare const selectIndex: (index: number) => Promise<void>;
|
|
74
|
+
declare const selectCurrentIndex: () => Promise<void>;
|
|
72
75
|
declare const openContextMenu$1: (index: number) => Promise<void>;
|
|
73
76
|
declare const focus$1: () => Promise<void>;
|
|
74
77
|
declare const focusNext$2: () => Promise<void>;
|
|
@@ -117,6 +120,13 @@ declare const clearInput: () => Promise<void>;
|
|
|
117
120
|
declare const sortByPrecedence: () => Promise<void>;
|
|
118
121
|
declare const stopRecordingKeys: () => Promise<void>;
|
|
119
122
|
declare const handleContextMenu$1: (button: number, x: number, y: number) => Promise<void>;
|
|
123
|
+
declare const copyCommandId: () => Promise<void>;
|
|
124
|
+
declare const copyCommandTitle: () => Promise<void>;
|
|
125
|
+
declare const addKeyBinding: () => Promise<void>;
|
|
126
|
+
declare const removeKeyBinding: () => Promise<void>;
|
|
127
|
+
declare const changeWhenExpression: () => Promise<void>;
|
|
128
|
+
declare const showSameKeyBindings: () => Promise<void>;
|
|
129
|
+
declare const resetKeyBinding: () => Promise<void>;
|
|
120
130
|
declare const press: (key: string) => Promise<void>;
|
|
121
131
|
declare const openUri: (uri: string) => Promise<void>;
|
|
122
132
|
declare const splitRight: () => Promise<void>;
|
|
@@ -126,11 +136,13 @@ declare const getNodePath: () => Promise<string>;
|
|
|
126
136
|
declare const isFirefox: () => boolean;
|
|
127
137
|
declare const show$1: () => Promise<void>;
|
|
128
138
|
declare const open$3: () => Promise<void>;
|
|
139
|
+
declare const handleInput$1: (value: string) => Promise<void>;
|
|
129
140
|
declare const setValue$1: (value: string) => Promise<void>;
|
|
130
141
|
declare const focusNext$5: () => Promise<void>;
|
|
131
142
|
declare const focusIndex$1: (index: number) => Promise<void>;
|
|
132
143
|
declare const focusPrevious$3: () => Promise<void>;
|
|
133
144
|
declare const selectItem$1: (label: string) => Promise<void>;
|
|
145
|
+
declare const selectIndex$1: (index: number) => Promise<void>;
|
|
134
146
|
declare const executeCommand: (label: string) => Promise<void>;
|
|
135
147
|
declare const setValue$2: (value: string) => Promise<void>;
|
|
136
148
|
declare const setReplaceValue: (value: string) => Promise<void>;
|
|
@@ -138,10 +150,12 @@ declare const setExcludeValue: (value: string) => Promise<void>;
|
|
|
138
150
|
declare const replaceAll: () => Promise<void>;
|
|
139
151
|
declare const setIncludeValue: (value: string) => Promise<void>;
|
|
140
152
|
declare const clearSearchResults: () => Promise<void>;
|
|
153
|
+
declare const openDetails: () => Promise<void>;
|
|
154
|
+
declare const collapseDetails: () => Promise<void>;
|
|
141
155
|
declare const dismissItem: () => Promise<void>;
|
|
142
156
|
declare const focusFirst$3: () => Promise<void>;
|
|
143
157
|
declare const focusIndex$2: (index: number) => Promise<void>;
|
|
144
|
-
declare const selectIndex: (index: number) => Promise<void>;
|
|
158
|
+
declare const selectIndex$2: (index: number) => Promise<void>;
|
|
145
159
|
declare const focusNext$6: () => Promise<void>;
|
|
146
160
|
declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
147
161
|
declare const focusNextPage: () => Promise<void>;
|
|
@@ -157,7 +171,7 @@ declare const update: (settings: any) => Promise<void>;
|
|
|
157
171
|
declare const open$4: (id: string) => Promise<void>;
|
|
158
172
|
declare const hide: () => Promise<void>;
|
|
159
173
|
declare const acceptInput: () => Promise<void>;
|
|
160
|
-
declare const handleInput$
|
|
174
|
+
declare const handleInput$2: (text: string) => Promise<void>;
|
|
161
175
|
declare const update$1: () => Promise<void>;
|
|
162
176
|
declare const closeMenu: () => Promise<void>;
|
|
163
177
|
declare const focus$2: () => Promise<void>;
|
|
@@ -198,7 +212,10 @@ declare namespace ContextMenu {
|
|
|
198
212
|
export { selectItem };
|
|
199
213
|
}
|
|
200
214
|
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 };
|
|
215
|
+
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
|
+
}
|
|
217
|
+
declare namespace EditorCompletion {
|
|
218
|
+
export { selectCurrentIndex, selectIndex };
|
|
202
219
|
}
|
|
203
220
|
declare namespace Explorer {
|
|
204
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 };
|
|
@@ -219,7 +236,7 @@ declare namespace IconTheme {
|
|
|
219
236
|
export { setIconTheme };
|
|
220
237
|
}
|
|
221
238
|
declare namespace KeyBindingsEditor {
|
|
222
|
-
export { clearInput, 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, sortByPrecedence, startRecordingKeys, stopRecordingKeys, toggleRecordingKeys };
|
|
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 };
|
|
223
240
|
}
|
|
224
241
|
declare namespace KeyBoard {
|
|
225
242
|
export { press };
|
|
@@ -237,10 +254,10 @@ declare namespace Problems {
|
|
|
237
254
|
export { show$1 as show };
|
|
238
255
|
}
|
|
239
256
|
declare namespace QuickPick {
|
|
240
|
-
export { executeCommand, focusIndex$1 as focusIndex, focusNext$5 as focusNext, focusPrevious$3 as focusPrevious, open$3 as open, selectItem$1 as selectItem, setValue$1 as setValue };
|
|
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 };
|
|
241
258
|
}
|
|
242
259
|
declare namespace Search {
|
|
243
|
-
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 };
|
|
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 };
|
|
244
261
|
}
|
|
245
262
|
declare namespace Settings {
|
|
246
263
|
export { update };
|
|
@@ -249,7 +266,7 @@ declare namespace SideBar {
|
|
|
249
266
|
export { hide, open$4 as open };
|
|
250
267
|
}
|
|
251
268
|
declare namespace SourceControl {
|
|
252
|
-
export { acceptInput, handleInput$
|
|
269
|
+
export { acceptInput, handleInput$2 as handleInput };
|
|
253
270
|
}
|
|
254
271
|
declare namespace StatusBar {
|
|
255
272
|
export { update$1 as update };
|
|
@@ -268,6 +285,7 @@ export interface TestApi {
|
|
|
268
285
|
readonly Command: typeof Command,
|
|
269
286
|
readonly ContextMenu: typeof ContextMenu,
|
|
270
287
|
readonly Editor: typeof Editor,
|
|
288
|
+
readonly EditorCompletion: typeof EditorCompletion,
|
|
271
289
|
readonly Explorer: typeof Explorer,
|
|
272
290
|
readonly Extension: typeof Extension,
|
|
273
291
|
readonly ExtensionDetail: typeof ExtensionDetail,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/test-with-playwright",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.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.12.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"
|