@umbraco/playwright-testhelpers 17.0.19 → 17.1.0-beta.1

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 (88) hide show
  1. package/dist/lib/helpers/BasePage.d.ts +447 -0
  2. package/dist/lib/helpers/BasePage.js +543 -0
  3. package/dist/lib/helpers/BasePage.js.map +1 -0
  4. package/dist/lib/helpers/ConstantHelper.d.ts +17 -0
  5. package/dist/lib/helpers/ConstantHelper.js +17 -0
  6. package/dist/lib/helpers/ConstantHelper.js.map +1 -1
  7. package/dist/lib/helpers/ContentRenderUiHelper.js +3 -3
  8. package/dist/lib/helpers/ContentRenderUiHelper.js.map +1 -1
  9. package/dist/lib/helpers/ContentUiHelper.d.ts +0 -6
  10. package/dist/lib/helpers/ContentUiHelper.js +333 -495
  11. package/dist/lib/helpers/ContentUiHelper.js.map +1 -1
  12. package/dist/lib/helpers/CurrentUserProfileUiHelper.js +4 -10
  13. package/dist/lib/helpers/CurrentUserProfileUiHelper.js.map +1 -1
  14. package/dist/lib/helpers/DataTypeUiHelper.js +189 -328
  15. package/dist/lib/helpers/DataTypeUiHelper.js.map +1 -1
  16. package/dist/lib/helpers/DictionaryUiHelper.js +16 -21
  17. package/dist/lib/helpers/DictionaryUiHelper.js.map +1 -1
  18. package/dist/lib/helpers/DocumentBlueprintUiHelper.js +7 -8
  19. package/dist/lib/helpers/DocumentBlueprintUiHelper.js.map +1 -1
  20. package/dist/lib/helpers/DocumentTypeApiHelper.d.ts +1 -4
  21. package/dist/lib/helpers/DocumentTypeApiHelper.js +1 -121
  22. package/dist/lib/helpers/DocumentTypeApiHelper.js.map +1 -1
  23. package/dist/lib/helpers/DocumentTypeUiHelper.js +18 -33
  24. package/dist/lib/helpers/DocumentTypeUiHelper.js.map +1 -1
  25. package/dist/lib/helpers/ExamineManagementUiHelper.js +4 -4
  26. package/dist/lib/helpers/ExamineManagementUiHelper.js.map +1 -1
  27. package/dist/lib/helpers/FormsUiHelper.js +119 -158
  28. package/dist/lib/helpers/FormsUiHelper.js.map +1 -1
  29. package/dist/lib/helpers/HealthCheckUiHelper.js +3 -3
  30. package/dist/lib/helpers/HealthCheckUiHelper.js.map +1 -1
  31. package/dist/lib/helpers/LanguageUiHelper.js +15 -17
  32. package/dist/lib/helpers/LanguageUiHelper.js.map +1 -1
  33. package/dist/lib/helpers/LogViewerUiHelper.js +21 -30
  34. package/dist/lib/helpers/LogViewerUiHelper.js.map +1 -1
  35. package/dist/lib/helpers/LoginUiHelper.js +5 -7
  36. package/dist/lib/helpers/LoginUiHelper.js.map +1 -1
  37. package/dist/lib/helpers/MediaTypeUiHelper.js +11 -17
  38. package/dist/lib/helpers/MediaTypeUiHelper.js.map +1 -1
  39. package/dist/lib/helpers/MediaUiHelper.js +34 -43
  40. package/dist/lib/helpers/MediaUiHelper.js.map +1 -1
  41. package/dist/lib/helpers/MemberGroupUiHelper.js +12 -15
  42. package/dist/lib/helpers/MemberGroupUiHelper.js.map +1 -1
  43. package/dist/lib/helpers/MemberTypeUiHelper.js +2 -3
  44. package/dist/lib/helpers/MemberTypeUiHelper.js.map +1 -1
  45. package/dist/lib/helpers/MemberUiHelper.js +24 -42
  46. package/dist/lib/helpers/MemberUiHelper.js.map +1 -1
  47. package/dist/lib/helpers/ModelsBuilderUiHelper.js +2 -3
  48. package/dist/lib/helpers/ModelsBuilderUiHelper.js.map +1 -1
  49. package/dist/lib/helpers/PackageUiHelper.js +29 -34
  50. package/dist/lib/helpers/PackageUiHelper.js.map +1 -1
  51. package/dist/lib/helpers/PartialViewUiHelper.js +13 -15
  52. package/dist/lib/helpers/PartialViewUiHelper.js.map +1 -1
  53. package/dist/lib/helpers/ProfilingUiHelper.js +2 -4
  54. package/dist/lib/helpers/ProfilingUiHelper.js.map +1 -1
  55. package/dist/lib/helpers/PublishedStatusUiHelper.js +6 -6
  56. package/dist/lib/helpers/PublishedStatusUiHelper.js.map +1 -1
  57. package/dist/lib/helpers/RedirectManagementUiHelper.js +7 -12
  58. package/dist/lib/helpers/RedirectManagementUiHelper.js.map +1 -1
  59. package/dist/lib/helpers/RelationTypeUiHelper.js +12 -14
  60. package/dist/lib/helpers/RelationTypeUiHelper.js.map +1 -1
  61. package/dist/lib/helpers/ScriptUiHelper.js +8 -11
  62. package/dist/lib/helpers/ScriptUiHelper.js.map +1 -1
  63. package/dist/lib/helpers/StylesheetUiHelper.js +8 -12
  64. package/dist/lib/helpers/StylesheetUiHelper.js.map +1 -1
  65. package/dist/lib/helpers/TelemetryDataUiHelper.js +2 -3
  66. package/dist/lib/helpers/TelemetryDataUiHelper.js.map +1 -1
  67. package/dist/lib/helpers/TemplateUiHelper.js +17 -22
  68. package/dist/lib/helpers/TemplateUiHelper.js.map +1 -1
  69. package/dist/lib/helpers/UiBaseLocators.d.ts +230 -228
  70. package/dist/lib/helpers/UiBaseLocators.js +832 -869
  71. package/dist/lib/helpers/UiBaseLocators.js.map +1 -1
  72. package/dist/lib/helpers/UserGroupUiHelper.js +27 -44
  73. package/dist/lib/helpers/UserGroupUiHelper.js.map +1 -1
  74. package/dist/lib/helpers/UserUiHelper.js +43 -46
  75. package/dist/lib/helpers/UserUiHelper.js.map +1 -1
  76. package/dist/lib/helpers/WebhookUiHelper.js +11 -27
  77. package/dist/lib/helpers/WebhookUiHelper.js.map +1 -1
  78. package/dist/lib/helpers/WelcomeDashboardUiHelper.js +1 -1
  79. package/dist/lib/helpers/WelcomeDashboardUiHelper.js.map +1 -1
  80. package/dist/lib/helpers/differentAppSettingsHelpers/ExternalLoginUiHelpers.js +4 -9
  81. package/dist/lib/helpers/differentAppSettingsHelpers/ExternalLoginUiHelpers.js.map +1 -1
  82. package/dist/lib/helpers/differentAppSettingsHelpers/InstallUiHelper.js +5 -10
  83. package/dist/lib/helpers/differentAppSettingsHelpers/InstallUiHelper.js.map +1 -1
  84. package/dist/lib/helpers/index.d.ts +1 -0
  85. package/dist/lib/helpers/index.js +3 -1
  86. package/dist/lib/helpers/index.js.map +1 -1
  87. package/dist/tsconfig.tsbuildinfo +1 -1
  88. package/package.json +1 -1
@@ -0,0 +1,447 @@
1
+ import { Locator, Page } from "@playwright/test";
2
+ /**
3
+ * Base page class providing common UI interaction methods.
4
+ * All methods follow best practices for reliability:
5
+ * - click: Always checks element visibility before clicking
6
+ * - enterText: Always clears before filling text
7
+ * - select: Waits for element visibility before selecting
8
+ *
9
+ * @example
10
+ * ```typescript
11
+ * class MyPage extends BasePage {
12
+ * readonly submitBtn: Locator;
13
+ *
14
+ * constructor(page: Page) {
15
+ * super(page);
16
+ * this.submitBtn = page.getByRole('button', { name: 'Submit' });
17
+ * }
18
+ *
19
+ * async submit() {
20
+ * await this.click(this.submitBtn);
21
+ * }
22
+ * }
23
+ * ```
24
+ */
25
+ export declare class BasePage {
26
+ readonly page: Page;
27
+ constructor(page: Page);
28
+ /**
29
+ * Clicks an element after verifying it is visible.
30
+ * @param locator - The element to click
31
+ * @param options - Optional click configuration
32
+ */
33
+ click(locator: Locator, options?: {
34
+ force?: boolean;
35
+ timeout?: number;
36
+ }): Promise<void>;
37
+ /**
38
+ * Double-clicks an element after verifying it is visible.
39
+ * @param locator - The element to double-click
40
+ * @param options - Optional configuration
41
+ */
42
+ doubleClick(locator: Locator, options?: {
43
+ force?: boolean;
44
+ timeout?: number;
45
+ }): Promise<void>;
46
+ /**
47
+ * Right-clicks an element after verifying it is visible.
48
+ * @param locator - The element to right-click
49
+ * @param options - Optional configuration
50
+ */
51
+ rightClick(locator: Locator, options?: {
52
+ force?: boolean;
53
+ timeout?: number;
54
+ }): Promise<void>;
55
+ /**
56
+ * Clicks an element using JavaScript (bypasses actionability checks).
57
+ * Use when standard click doesn't work due to overlapping elements.
58
+ * @param locator - The element to click
59
+ */
60
+ forceClick(locator: Locator): Promise<void>;
61
+ /**
62
+ * Enters text into an input field after clearing it.
63
+ * Verifies element visibility before interaction.
64
+ * @param locator - The input element
65
+ * @param text - The text to enter
66
+ * @param options - Optional configuration
67
+ */
68
+ enterText(locator: Locator, text: string, options?: {
69
+ clearFirst?: boolean;
70
+ verify?: boolean;
71
+ timeout?: number;
72
+ }): Promise<void>;
73
+ /**
74
+ * Types text character by character (simulates real typing).
75
+ * Useful when fill() doesn't trigger necessary events.
76
+ * @param locator - The input element
77
+ * @param text - The text to type
78
+ * @param options - Optional configuration
79
+ */
80
+ typeText(locator: Locator, text: string, options?: {
81
+ clearFirst?: boolean;
82
+ delay?: number;
83
+ timeout?: number;
84
+ }): Promise<void>;
85
+ /**
86
+ * Clears an input field.
87
+ * @param locator - The input element to clear
88
+ */
89
+ clearText(locator: Locator, options?: {
90
+ timeout?: number;
91
+ }): Promise<void>;
92
+ /**
93
+ * Presses a keyboard key while focused on an element.
94
+ * @param locator - The element to focus
95
+ * @param key - The key to press (e.g., 'Enter', 'Tab', 'Escape')
96
+ */
97
+ pressKey(locator: Locator, key: string, options?: {
98
+ timeout?: number;
99
+ }): Promise<void>;
100
+ /**
101
+ * Selects an option from a dropdown by value.
102
+ * @param locator - The select element
103
+ * @param value - The option value to select
104
+ */
105
+ selectByValue(locator: Locator, value: string, options?: {
106
+ timeout?: number;
107
+ }): Promise<void>;
108
+ /**
109
+ * Selects an option from a dropdown by visible text.
110
+ * @param locator - The select element
111
+ * @param text - The option text to select
112
+ */
113
+ selectByText(locator: Locator, text: string, options?: {
114
+ timeout?: number;
115
+ }): Promise<void>;
116
+ /**
117
+ * Selects an option from a dropdown by index.
118
+ * @param locator - The select element
119
+ * @param index - The option index to select (0-based)
120
+ */
121
+ selectByIndex(locator: Locator, index: number, options?: {
122
+ timeout?: number;
123
+ }): Promise<void>;
124
+ /**
125
+ * Selects multiple options from a multi-select dropdown.
126
+ * @param locator - The select element
127
+ * @param values - Array of option values to select
128
+ */
129
+ selectMultiple(locator: Locator, values: string[], options?: {
130
+ timeout?: number;
131
+ }): Promise<void>;
132
+ /**
133
+ * Checks a checkbox if it's not already checked.
134
+ * @param locator - The checkbox element
135
+ */
136
+ check(locator: Locator, options?: {
137
+ force?: boolean;
138
+ timeout?: number;
139
+ }): Promise<void>;
140
+ /**
141
+ * Unchecks a checkbox if it's currently checked.
142
+ * @param locator - The checkbox element
143
+ */
144
+ uncheck(locator: Locator, options?: {
145
+ force?: boolean;
146
+ timeout?: number;
147
+ }): Promise<void>;
148
+ /**
149
+ * Sets a checkbox to a specific state.
150
+ * @param locator - The checkbox element
151
+ * @param checked - Whether the checkbox should be checked
152
+ */
153
+ setChecked(locator: Locator, checked: boolean, options?: {
154
+ force?: boolean;
155
+ timeout?: number;
156
+ }): Promise<void>;
157
+ /**
158
+ * Hovers over an element.
159
+ * @param locator - The element to hover over
160
+ */
161
+ hover(locator: Locator, options?: {
162
+ force?: boolean;
163
+ timeout?: number;
164
+ }): Promise<void>;
165
+ /**
166
+ * Focuses on an element.
167
+ * @param locator - The element to focus
168
+ */
169
+ focus(locator: Locator, options?: {
170
+ timeout?: number;
171
+ }): Promise<void>;
172
+ /**
173
+ * Hovers over one element and clicks another (for menus that appear on hover).
174
+ * @param hoverLocator - The element to hover over
175
+ * @param clickLocator - The element to click after hover
176
+ */
177
+ hoverAndClick(hoverLocator: Locator, clickLocator: Locator, options?: {
178
+ force?: boolean;
179
+ timeout?: number;
180
+ }): Promise<void>;
181
+ /**
182
+ * Waits for an element to be visible.
183
+ * @param locator - The element to wait for
184
+ * @param timeout - Maximum time to wait in milliseconds
185
+ */
186
+ waitForVisible(locator: Locator, timeout?: number): Promise<void>;
187
+ /**
188
+ * Waits for an element to be hidden.
189
+ * @param locator - The element to wait for
190
+ * @param timeout - Maximum time to wait in milliseconds
191
+ */
192
+ waitForHidden(locator: Locator, timeout?: number): Promise<void>;
193
+ /**
194
+ * Waits for an element to be attached to the DOM.
195
+ * @param locator - The element to wait for
196
+ * @param timeout - Maximum time to wait in milliseconds
197
+ */
198
+ waitForAttached(locator: Locator, timeout?: number): Promise<void>;
199
+ /**
200
+ * Waits for an element to be detached from the DOM.
201
+ * @param locator - The element to wait for
202
+ * @param timeout - Maximum time to wait in milliseconds
203
+ */
204
+ waitForDetached(locator: Locator, timeout?: number): Promise<void>;
205
+ /**
206
+ * Waits for the page to finish loading (network idle).
207
+ */
208
+ waitForPageLoad(): Promise<void>;
209
+ /**
210
+ * Waits for the DOM to be fully loaded.
211
+ */
212
+ waitForDOMContentLoaded(): Promise<void>;
213
+ /**
214
+ * Waits for all network requests to complete.
215
+ */
216
+ waitForLoadState(): Promise<void>;
217
+ /**
218
+ * Waits for an element to be enabled.
219
+ * @param locator - The element to wait for
220
+ * @param timeout - Maximum time to wait in milliseconds
221
+ */
222
+ waitForEnabled(locator: Locator, timeout?: number): Promise<void>;
223
+ /**
224
+ * Waits for an element to be disabled.
225
+ * @param locator - The element to wait for
226
+ * @param timeout - Maximum time to wait in milliseconds
227
+ */
228
+ waitForDisabled(locator: Locator, timeout?: number): Promise<void>;
229
+ /**
230
+ * Waits for an element to contain specific text.
231
+ * @param locator - The element to wait for
232
+ * @param text - The text to wait for
233
+ * @param timeout - Maximum time to wait in milliseconds
234
+ */
235
+ waitForText(locator: Locator, text: string, timeout?: number): Promise<void>;
236
+ /**
237
+ * Waits for an input to have a specific value.
238
+ * @param locator - The input element to wait for
239
+ * @param value - The value to wait for
240
+ * @param timeout - Maximum time to wait in milliseconds
241
+ */
242
+ waitForValue(locator: Locator, value: string, timeout?: number): Promise<void>;
243
+ /**
244
+ * Waits for an element to have a specific attribute value.
245
+ * @param locator - The element to wait for
246
+ * @param name - The attribute name
247
+ * @param value - The expected attribute value
248
+ * @param timeout - Maximum time to wait in milliseconds
249
+ */
250
+ waitForAttribute(locator: Locator, name: string, value: string | RegExp, timeout?: number): Promise<void>;
251
+ /**
252
+ * Waits for an element to have a specific CSS class.
253
+ * @param locator - The element to wait for
254
+ * @param className - The CSS class to wait for
255
+ * @param timeout - Maximum time to wait in milliseconds
256
+ */
257
+ waitForClass(locator: Locator, className: string | RegExp, timeout?: number): Promise<void>;
258
+ /**
259
+ * Waits for an element to be editable.
260
+ * @param locator - The element to wait for
261
+ * @param timeout - Maximum time to wait in milliseconds
262
+ */
263
+ waitForEditable(locator: Locator, timeout?: number): Promise<void>;
264
+ /**
265
+ * Waits for an element to be checked.
266
+ * @param locator - The checkbox/radio element to wait for
267
+ * @param timeout - Maximum time to wait in milliseconds
268
+ */
269
+ waitForChecked(locator: Locator, timeout?: number): Promise<void>;
270
+ /**
271
+ * Waits for an element to be unchecked.
272
+ * @param locator - The checkbox/radio element to wait for
273
+ * @param timeout - Maximum time to wait in milliseconds
274
+ */
275
+ waitForUnchecked(locator: Locator, timeout?: number): Promise<void>;
276
+ /**
277
+ * Waits for a specific URL or URL pattern.
278
+ * @param url - The URL string or regex pattern to wait for
279
+ * @param timeout - Maximum time to wait in milliseconds
280
+ */
281
+ waitForURL(url: string | RegExp, timeout?: number): Promise<void>;
282
+ /**
283
+ * Waits for a navigation to complete.
284
+ * @param timeout - Maximum time to wait in milliseconds
285
+ */
286
+ waitForNavigation(timeout?: number): Promise<void>;
287
+ /**
288
+ * Waits for a specific time (use sparingly, prefer explicit waits).
289
+ * @param milliseconds - Time to wait in milliseconds
290
+ */
291
+ waitForTimeout(milliseconds: number): Promise<void>;
292
+ /**
293
+ * Waits for a network request to a specific URL.
294
+ * @param urlOrPredicate - URL string, regex, or predicate function
295
+ * @param timeout - Maximum time to wait in milliseconds
296
+ */
297
+ waitForRequest(urlOrPredicate: string | RegExp | ((request: any) => boolean), timeout?: number): Promise<any>;
298
+ /**
299
+ * Waits for a network response from a specific URL.
300
+ * @param urlOrPredicate - URL string, regex, or predicate function
301
+ * @param timeout - Maximum time to wait in milliseconds
302
+ */
303
+ waitForResponse(urlOrPredicate: string | RegExp | ((response: any) => boolean), timeout?: number): Promise<any>;
304
+ /**
305
+ * Waits for an element to be focused.
306
+ * @param locator - The element to wait for
307
+ * @param timeout - Maximum time to wait in milliseconds
308
+ */
309
+ waitForFocused(locator: Locator, timeout?: number): Promise<void>;
310
+ /**
311
+ * Waits for an element to be empty (no text content).
312
+ * @param locator - The element to wait for
313
+ * @param timeout - Maximum time to wait in milliseconds
314
+ */
315
+ waitForEmpty(locator: Locator, timeout?: number): Promise<void>;
316
+ /**
317
+ * Waits for a function to return true.
318
+ * @param predicate - Function that returns a boolean or Promise<boolean>
319
+ * @param timeout - Maximum time to wait in milliseconds
320
+ */
321
+ waitForFunction(predicate: () => boolean | Promise<boolean>, timeout?: number): Promise<void>;
322
+ /**
323
+ * Waits for an element to have a specific CSS property value.
324
+ * @param locator - The element to wait for
325
+ * @param property - The CSS property name
326
+ * @param value - The expected CSS property value
327
+ * @param timeout - Maximum time to wait in milliseconds
328
+ */
329
+ waitForCSS(locator: Locator, property: string, value: string | RegExp, timeout?: number): Promise<void>;
330
+ /**
331
+ * Asserts that an element is visible.
332
+ * @param locator - The element to check
333
+ * @param isVisible - Whether the element should be visible (default: true)
334
+ */
335
+ isVisible(locator: Locator, isVisible?: boolean, timeout?: number): Promise<void>;
336
+ /**
337
+ * Asserts that an element is enabled.
338
+ * @param locator - The element to check
339
+ */
340
+ isEnabled(locator: Locator, timeout?: number): Promise<void>;
341
+ /**
342
+ * Asserts that an element is disabled.
343
+ * @param locator - The element to check
344
+ */
345
+ isDisabled(locator: Locator, timeout?: number): Promise<void>;
346
+ /**
347
+ * Asserts that an element contains specific text.
348
+ * @param locator - The element to check
349
+ * @param text - The text to look for
350
+ */
351
+ containsText(locator: Locator, text: string, timeout?: number): Promise<void>;
352
+ /**
353
+ * Asserts that an element has specific text.
354
+ * @param locator - The element to check
355
+ * @param text - The exact text expected
356
+ */
357
+ hasText(locator: Locator, text: string, timeout?: number): Promise<void>;
358
+ /**
359
+ * Asserts that an input has a specific value.
360
+ * @param locator - The input element to check
361
+ * @param value - The expected value
362
+ */
363
+ hasValue(locator: Locator, value: string, timeout?: number): Promise<void>;
364
+ /**
365
+ * Asserts that an element has a specific attribute value.
366
+ * @param locator - The element to check
367
+ * @param name - The attribute name
368
+ * @param value - The expected attribute value
369
+ */
370
+ hasAttribute(locator: Locator, name: string, value: string, timeout?: number): Promise<void>;
371
+ /**
372
+ * Asserts that a specific number of elements exist.
373
+ * @param locator - The locator to count
374
+ * @param count - The expected count
375
+ */
376
+ hasCount(locator: Locator, count: number, timeout?: number): Promise<void>;
377
+ /**
378
+ * Gets the text content of an element.
379
+ * @param locator - The element to get text from
380
+ * @returns The text content
381
+ */
382
+ getText(locator: Locator, options?: {
383
+ timeout?: number;
384
+ }): Promise<string>;
385
+ /**
386
+ * Gets the value of an input element.
387
+ * @param locator - The input element
388
+ * @returns The input value
389
+ */
390
+ getValue(locator: Locator, options?: {
391
+ timeout?: number;
392
+ }): Promise<string>;
393
+ /**
394
+ * Gets an attribute value from an element.
395
+ * @param locator - The element
396
+ * @param attributeName - The attribute name
397
+ * @returns The attribute value or null
398
+ */
399
+ getAttribute(locator: Locator, attributeName: string, options?: {
400
+ timeout?: number;
401
+ }): Promise<string | null>;
402
+ /**
403
+ * Checks if an element is currently visible.
404
+ * @param locator - The element to check
405
+ * @returns True if visible, false otherwise
406
+ */
407
+ checkIsVisible(locator: Locator): Promise<boolean>;
408
+ /**
409
+ * Checks if a checkbox is checked.
410
+ * @param locator - The checkbox element
411
+ * @returns True if checked, false otherwise
412
+ */
413
+ isChecked(locator: Locator): Promise<boolean>;
414
+ /**
415
+ * Scrolls an element into view.
416
+ * @param locator - The element to scroll to
417
+ */
418
+ scrollIntoView(locator: Locator, options?: {
419
+ timeout?: number;
420
+ }): Promise<void>;
421
+ /**
422
+ * Sets files on a file input element.
423
+ * @param locator - The file input element
424
+ * @param filePath - Path to the file(s) to set
425
+ */
426
+ setInputFiles(locator: Locator, filePath: string | string[]): Promise<void>;
427
+ /**
428
+ * Clears files from a file input.
429
+ * @param locator - The file input element
430
+ */
431
+ clearInputFiles(locator: Locator): Promise<void>;
432
+ /**
433
+ * Drags an element and drops it on another element.
434
+ * @param source - The element to drag
435
+ * @param target - The element to drop on
436
+ */
437
+ dragTo(source: Locator, target: Locator, options?: {
438
+ sourcePosition?: {
439
+ x: number;
440
+ y: number;
441
+ };
442
+ targetPosition?: {
443
+ x: number;
444
+ y: number;
445
+ };
446
+ }): Promise<void>;
447
+ }