@lvce-editor/test-with-playwright 2.10.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.
Files changed (2) hide show
  1. package/api.d.ts +30 -7
  2. 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>;
@@ -111,7 +114,19 @@ declare const focusNext$4: () => Promise<void>;
111
114
  declare const focusPrevious$2: () => Promise<void>;
112
115
  declare const focusFirst$2: () => Promise<void>;
113
116
  declare const focusLast$2: () => Promise<void>;
117
+ declare const toggleRecordingKeys: () => Promise<void>;
118
+ declare const startRecordingKeys: () => Promise<void>;
119
+ declare const clearInput: () => Promise<void>;
120
+ declare const sortByPrecedence: () => Promise<void>;
121
+ declare const stopRecordingKeys: () => Promise<void>;
114
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>;
115
130
  declare const press: (key: string) => Promise<void>;
116
131
  declare const openUri: (uri: string) => Promise<void>;
117
132
  declare const splitRight: () => Promise<void>;
@@ -121,11 +136,13 @@ declare const getNodePath: () => Promise<string>;
121
136
  declare const isFirefox: () => boolean;
122
137
  declare const show$1: () => Promise<void>;
123
138
  declare const open$3: () => Promise<void>;
139
+ declare const handleInput$1: (value: string) => Promise<void>;
124
140
  declare const setValue$1: (value: string) => Promise<void>;
125
141
  declare const focusNext$5: () => Promise<void>;
126
142
  declare const focusIndex$1: (index: number) => Promise<void>;
127
143
  declare const focusPrevious$3: () => Promise<void>;
128
144
  declare const selectItem$1: (label: string) => Promise<void>;
145
+ declare const selectIndex$1: (index: number) => Promise<void>;
129
146
  declare const executeCommand: (label: string) => Promise<void>;
130
147
  declare const setValue$2: (value: string) => Promise<void>;
131
148
  declare const setReplaceValue: (value: string) => Promise<void>;
@@ -133,10 +150,12 @@ declare const setExcludeValue: (value: string) => Promise<void>;
133
150
  declare const replaceAll: () => Promise<void>;
134
151
  declare const setIncludeValue: (value: string) => Promise<void>;
135
152
  declare const clearSearchResults: () => Promise<void>;
153
+ declare const openDetails: () => Promise<void>;
154
+ declare const collapseDetails: () => Promise<void>;
136
155
  declare const dismissItem: () => Promise<void>;
137
156
  declare const focusFirst$3: () => Promise<void>;
138
157
  declare const focusIndex$2: (index: number) => Promise<void>;
139
- declare const selectIndex: (index: number) => Promise<void>;
158
+ declare const selectIndex$2: (index: number) => Promise<void>;
140
159
  declare const focusNext$6: () => Promise<void>;
141
160
  declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
142
161
  declare const focusNextPage: () => Promise<void>;
@@ -152,7 +171,7 @@ declare const update: (settings: any) => Promise<void>;
152
171
  declare const open$4: (id: string) => Promise<void>;
153
172
  declare const hide: () => Promise<void>;
154
173
  declare const acceptInput: () => Promise<void>;
155
- declare const handleInput$1: (text: string) => Promise<void>;
174
+ declare const handleInput$2: (text: string) => Promise<void>;
156
175
  declare const update$1: () => Promise<void>;
157
176
  declare const closeMenu: () => Promise<void>;
158
177
  declare const focus$2: () => Promise<void>;
@@ -193,7 +212,10 @@ declare namespace ContextMenu {
193
212
  export { selectItem };
194
213
  }
195
214
  declare namespace Editor {
196
- 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 };
197
219
  }
198
220
  declare namespace Explorer {
199
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 };
@@ -214,7 +236,7 @@ declare namespace IconTheme {
214
236
  export { setIconTheme };
215
237
  }
216
238
  declare namespace KeyBindingsEditor {
217
- 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$1 as open };
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 };
218
240
  }
219
241
  declare namespace KeyBoard {
220
242
  export { press };
@@ -232,10 +254,10 @@ declare namespace Problems {
232
254
  export { show$1 as show };
233
255
  }
234
256
  declare namespace QuickPick {
235
- 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 };
236
258
  }
237
259
  declare namespace Search {
238
- 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 };
239
261
  }
240
262
  declare namespace Settings {
241
263
  export { update };
@@ -244,7 +266,7 @@ declare namespace SideBar {
244
266
  export { hide, open$4 as open };
245
267
  }
246
268
  declare namespace SourceControl {
247
- export { acceptInput, handleInput$1 as handleInput };
269
+ export { acceptInput, handleInput$2 as handleInput };
248
270
  }
249
271
  declare namespace StatusBar {
250
272
  export { update$1 as update };
@@ -263,6 +285,7 @@ export interface TestApi {
263
285
  readonly Command: typeof Command,
264
286
  readonly ContextMenu: typeof ContextMenu,
265
287
  readonly Editor: typeof Editor,
288
+ readonly EditorCompletion: typeof EditorCompletion,
266
289
  readonly Explorer: typeof Explorer,
267
290
  readonly Extension: typeof Extension,
268
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.10.0",
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.10.0"
22
+ "@lvce-editor/test-with-playwright-worker": "2.12.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@types/jest": "^29.5.12",
25
+ "@types/jest": "^29.5.14",
26
26
  "jest": "^29.7.0"
27
27
  },
28
28
  "types": "api.d.ts"