cypress 10.11.0 → 11.0.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/angular/CHANGELOG.md +20 -0
- package/angular/dist/index.d.ts +124 -1
- package/angular/dist/index.js +59 -59
- package/lib/cli.js +15 -1
- package/lib/tasks/download.js +3 -7
- package/lib/util.js +2 -2
- package/mount-utils/CHANGELOG.md +14 -0
- package/mount-utils/README.md +5 -23
- package/mount-utils/dist/index.d.ts +25 -39
- package/mount-utils/dist/index.js +33 -112
- package/mount-utils/package.json +1 -0
- package/package.json +3 -3
- package/react/CHANGELOG.md +27 -0
- package/react/README.md +2 -22
- package/react/dist/cypress-react.cjs.js +92 -219
- package/react/dist/cypress-react.esm-bundler.js +92 -220
- package/react/dist/index.d.ts +111 -4
- package/react18/CHANGELOG.md +13 -0
- package/react18/dist/cypress-react.cjs.js +117 -180
- package/react18/dist/cypress-react.esm-bundler.js +103 -167
- package/react18/dist/index.d.ts +78 -6
- package/react18/package.json +1 -0
- package/svelte/CHANGELOG.md +20 -0
- package/svelte/dist/cypress-svelte.cjs.js +19 -114
- package/svelte/dist/cypress-svelte.esm-bundler.js +19 -114
- package/svelte/dist/index.d.ts +201 -1
- package/types/cypress.d.ts +18 -10
- package/vue/CHANGELOG.md +34 -0
- package/vue/README.md +4 -8
- package/vue/dist/cypress-vue.cjs.js +68 -151
- package/vue/dist/cypress-vue.esm-bundler.js +68 -151
- package/vue/dist/index.d.ts +1352 -104
- package/vue/package.json +1 -1
- package/vue2/CHANGELOG.md +27 -0
- package/vue2/README.md +3 -7
- package/vue2/dist/cypress-vue2.cjs.js +87 -211
- package/vue2/dist/cypress-vue2.esm-bundler.js +86 -210
- package/vue2/dist/index.d.ts +341 -172
- package/vue2/package.json +1 -3
- package/angular/dist/mount.d.ts +0 -112
- package/react/dist/createMount.d.ts +0 -31
- package/react/dist/getDisplayName.d.ts +0 -8
- package/react/dist/mount.d.ts +0 -8
- package/react/dist/mountHook.d.ts +0 -12
- package/react/dist/types.d.ts +0 -45
- package/svelte/dist/mount.d.ts +0 -30
- package/vue/dist/@vue/test-utils/baseWrapper.d.ts +0 -63
- package/vue/dist/@vue/test-utils/components/RouterLinkStub.d.ts +0 -21
- package/vue/dist/@vue/test-utils/config.d.ts +0 -30
- package/vue/dist/@vue/test-utils/constants/dom-events.d.ts +0 -900
- package/vue/dist/@vue/test-utils/createDomEvent.d.ts +0 -9
- package/vue/dist/@vue/test-utils/domWrapper.d.ts +0 -18
- package/vue/dist/@vue/test-utils/emit.d.ts +0 -5
- package/vue/dist/@vue/test-utils/errorWrapper.d.ts +0 -1
- package/vue/dist/@vue/test-utils/index.d.ts +0 -11
- package/vue/dist/@vue/test-utils/interfaces/wrapperLike.d.ts +0 -56
- package/vue/dist/@vue/test-utils/mount.d.ts +0 -35
- package/vue/dist/@vue/test-utils/stubs.d.ts +0 -22
- package/vue/dist/@vue/test-utils/types.d.ts +0 -125
- package/vue/dist/@vue/test-utils/utils/autoUnmount.d.ts +0 -5
- package/vue/dist/@vue/test-utils/utils/compileSlots.d.ts +0 -2
- package/vue/dist/@vue/test-utils/utils/componentName.d.ts +0 -4
- package/vue/dist/@vue/test-utils/utils/find.d.ts +0 -10
- package/vue/dist/@vue/test-utils/utils/flushPromises.d.ts +0 -1
- package/vue/dist/@vue/test-utils/utils/getRootNodes.d.ts +0 -2
- package/vue/dist/@vue/test-utils/utils/isElement.d.ts +0 -1
- package/vue/dist/@vue/test-utils/utils/isElementVisible.d.ts +0 -6
- package/vue/dist/@vue/test-utils/utils/matchName.d.ts +0 -1
- package/vue/dist/@vue/test-utils/utils/stringifyNode.d.ts +0 -1
- package/vue/dist/@vue/test-utils/utils/vueCompatSupport.d.ts +0 -8
- package/vue/dist/@vue/test-utils/utils/vueShared.d.ts +0 -3
- package/vue/dist/@vue/test-utils/utils.d.ts +0 -13
- package/vue/dist/@vue/test-utils/vueWrapper.d.ts +0 -35
- package/vue/dist/@vue/test-utils/wrapperFactory.d.ts +0 -14
package/vue/dist/index.d.ts
CHANGED
@@ -1,106 +1,1354 @@
|
|
1
|
-
/// <reference types="cypress" />
|
2
|
-
|
3
|
-
import
|
4
|
-
import
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
}
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
1
|
+
/// <reference types="cypress" />
|
2
|
+
|
3
|
+
import * as vue from 'vue';
|
4
|
+
import { ComponentInternalInstance, FunctionalComponent, ComponentOptions, Component, Plugin as Plugin$1, AppConfig, Directive, VNode, VNodeProps, ComponentPublicInstance, ComputedOptions, MethodOptions, CreateComponentPublicInstance, ComponentCustomProperties, App, ConcreteComponent, DefineComponent, ComponentOptionsMixin, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, Prop, EmitsOptions, ExtractDefaultPropTypes, ComponentOptionsWithoutProps, ComponentOptionsWithArrayProps, ComponentPropsOptions, ComponentOptionsWithObjectProps } from 'vue';
|
5
|
+
|
6
|
+
interface RefSelector {
|
7
|
+
ref: string;
|
8
|
+
}
|
9
|
+
interface NameSelector {
|
10
|
+
name: string;
|
11
|
+
length?: never;
|
12
|
+
}
|
13
|
+
declare type FindAllComponentsSelector = DefinedComponent | FunctionalComponent | ComponentOptions | NameSelector | string;
|
14
|
+
declare type FindComponentSelector = RefSelector | FindAllComponentsSelector;
|
15
|
+
declare type Slot = VNode | string | {
|
16
|
+
render: Function;
|
17
|
+
} | Function | Component;
|
18
|
+
declare type SlotDictionary = {
|
19
|
+
[key: string]: Slot;
|
20
|
+
};
|
21
|
+
declare type RawProps = VNodeProps & {
|
22
|
+
__v_isVNode?: never;
|
23
|
+
[Symbol.iterator]?: never;
|
24
|
+
} & Record<string, any>;
|
25
|
+
interface MountingOptions$1<Props, Data = {}> {
|
26
|
+
/**
|
27
|
+
* Overrides component's default data. Must be a function.
|
28
|
+
* @see https://next.vue-test-utils.vuejs.org/api/#data
|
29
|
+
*/
|
30
|
+
data?: () => {} extends Data ? any : Data extends object ? Partial<Data> : any;
|
31
|
+
/**
|
32
|
+
* Sets component props when mounted.
|
33
|
+
* @see https://next.vue-test-utils.vuejs.org/api/#props
|
34
|
+
*/
|
35
|
+
props?: (RawProps & Props) | ({} extends Props ? null : never);
|
36
|
+
/**
|
37
|
+
* @deprecated use `data` instead.
|
38
|
+
*/
|
39
|
+
propsData?: Props;
|
40
|
+
/**
|
41
|
+
* Sets component attributes when mounted.
|
42
|
+
* @see https://next.vue-test-utils.vuejs.org/api/#attrs
|
43
|
+
*/
|
44
|
+
attrs?: Record<string, unknown>;
|
45
|
+
/**
|
46
|
+
* Provide values for slots on a component.
|
47
|
+
* @see https://next.vue-test-utils.vuejs.org/api/#slots
|
48
|
+
*/
|
49
|
+
slots?: SlotDictionary & {
|
50
|
+
default?: Slot;
|
51
|
+
};
|
52
|
+
/**
|
53
|
+
* Provides global mounting options to the component.
|
54
|
+
*/
|
55
|
+
global?: GlobalMountOptions$1;
|
56
|
+
/**
|
57
|
+
* Specify where to mount the component.
|
58
|
+
* Can be a valid CSS selector, or an Element connected to the document.
|
59
|
+
* @see https://next.vue-test-utils.vuejs.org/api/#attachto
|
60
|
+
*/
|
61
|
+
attachTo?: HTMLElement | string;
|
62
|
+
/**
|
63
|
+
* Automatically stub out all the child components.
|
64
|
+
* @default false
|
65
|
+
* @see https://next.vue-test-utils.vuejs.org/api/#slots
|
66
|
+
*/
|
67
|
+
shallow?: boolean;
|
68
|
+
}
|
69
|
+
declare type Stub = boolean | Component;
|
70
|
+
declare type Stubs = Record<string, Stub> | Array<string>;
|
71
|
+
declare type GlobalMountOptions$1 = {
|
72
|
+
/**
|
73
|
+
* Installs plugins on the component.
|
74
|
+
* @see https://next.vue-test-utils.vuejs.org/api/#global-plugins
|
75
|
+
*/
|
76
|
+
plugins?: (Plugin$1 | [Plugin$1, ...any[]])[];
|
77
|
+
/**
|
78
|
+
* Customizes Vue application global configuration
|
79
|
+
* @see https://v3.vuejs.org/api/application-config.html#application-config
|
80
|
+
*/
|
81
|
+
config?: Partial<Omit<AppConfig, 'isNativeTag'>>;
|
82
|
+
/**
|
83
|
+
* Applies a mixin for components under testing.
|
84
|
+
* @see https://next.vue-test-utils.vuejs.org/api/#global-mixins
|
85
|
+
*/
|
86
|
+
mixins?: ComponentOptions[];
|
87
|
+
/**
|
88
|
+
* Mocks a global instance property.
|
89
|
+
* This is designed to mock variables injected by third party plugins, not
|
90
|
+
* Vue's native properties such as $root, $children, etc.
|
91
|
+
* @see https://next.vue-test-utils.vuejs.org/api/#global-mocks
|
92
|
+
*/
|
93
|
+
mocks?: Record<string, any>;
|
94
|
+
/**
|
95
|
+
* Provides data to be received in a setup function via `inject`.
|
96
|
+
* @see https://next.vue-test-utils.vuejs.org/api/#global-provide
|
97
|
+
*/
|
98
|
+
provide?: Record<any, any>;
|
99
|
+
/**
|
100
|
+
* Registers components globally for components under testing.
|
101
|
+
* @see https://next.vue-test-utils.vuejs.org/api/#global-components
|
102
|
+
*/
|
103
|
+
components?: Record<string, Component | object>;
|
104
|
+
/**
|
105
|
+
* Registers a directive globally for components under testing
|
106
|
+
* @see https://next.vue-test-utils.vuejs.org/api/#global-directives
|
107
|
+
*/
|
108
|
+
directives?: Record<string, Directive>;
|
109
|
+
/**
|
110
|
+
* Stubs a component for components under testing.
|
111
|
+
* @default "{ transition: true, 'transition-group': true }"
|
112
|
+
* @see https://next.vue-test-utils.vuejs.org/api/#global-stubs
|
113
|
+
*/
|
114
|
+
stubs?: Stubs;
|
115
|
+
/**
|
116
|
+
* Allows rendering the default slot content, even when using
|
117
|
+
* `shallow` or `shallowMount`.
|
118
|
+
* @default false
|
119
|
+
* @see https://next.vue-test-utils.vuejs.org/api/#global-renderstubdefaultslot
|
120
|
+
*/
|
121
|
+
renderStubDefaultSlot?: boolean;
|
37
122
|
};
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
123
|
+
declare type VueNode<T extends Node = Node> = T & {
|
124
|
+
__vue_app__?: any;
|
125
|
+
__vueParentComponent?: ComponentInternalInstance;
|
126
|
+
};
|
127
|
+
declare type DefinedComponent = new (...args: any[]) => any;
|
128
|
+
|
129
|
+
declare type DomEventName = keyof typeof domEvents;
|
130
|
+
declare const systemKeyModifiers: readonly ["ctrl", "shift", "alt", "meta"];
|
131
|
+
declare const mouseKeyModifiers: readonly ["left", "middle", "right"];
|
132
|
+
declare const keyCodesByKeyName: {
|
133
|
+
readonly backspace: 8;
|
134
|
+
readonly tab: 9;
|
135
|
+
readonly enter: 13;
|
136
|
+
readonly esc: 27;
|
137
|
+
readonly space: 32;
|
138
|
+
readonly pageup: 33;
|
139
|
+
readonly pagedown: 34;
|
140
|
+
readonly end: 35;
|
141
|
+
readonly home: 36;
|
142
|
+
readonly left: 37;
|
143
|
+
readonly up: 38;
|
144
|
+
readonly right: 39;
|
145
|
+
readonly down: 40;
|
146
|
+
readonly insert: 45;
|
147
|
+
readonly delete: 46;
|
148
|
+
};
|
149
|
+
declare type DomEventNameWithModifier = DomEventName | `${DomEventName}.${typeof systemKeyModifiers[number]}` | `click.${typeof mouseKeyModifiers[number]}` | `click.${typeof systemKeyModifiers[number]}.${typeof mouseKeyModifiers[number]}` | `${'keydown' | 'keyup'}.${keyof typeof keyCodesByKeyName}` | `${'keydown' | 'keyup'}.${typeof systemKeyModifiers[number]}.${keyof typeof keyCodesByKeyName}`;
|
150
|
+
declare const domEvents: {
|
151
|
+
readonly abort: {
|
152
|
+
readonly eventInterface: "Event";
|
153
|
+
readonly bubbles: false;
|
154
|
+
readonly cancelable: false;
|
155
|
+
};
|
156
|
+
readonly afterprint: {
|
157
|
+
readonly eventInterface: "Event";
|
158
|
+
readonly bubbles: false;
|
159
|
+
readonly cancelable: false;
|
160
|
+
};
|
161
|
+
readonly animationend: {
|
162
|
+
readonly eventInterface: "AnimationEvent";
|
163
|
+
readonly bubbles: true;
|
164
|
+
readonly cancelable: false;
|
165
|
+
};
|
166
|
+
readonly animationiteration: {
|
167
|
+
readonly eventInterface: "AnimationEvent";
|
168
|
+
readonly bubbles: true;
|
169
|
+
readonly cancelable: false;
|
170
|
+
};
|
171
|
+
readonly animationstart: {
|
172
|
+
readonly eventInterface: "AnimationEvent";
|
173
|
+
readonly bubbles: true;
|
174
|
+
readonly cancelable: false;
|
175
|
+
};
|
176
|
+
readonly appinstalled: {
|
177
|
+
readonly eventInterface: "Event";
|
178
|
+
readonly bubbles: false;
|
179
|
+
readonly cancelable: false;
|
180
|
+
};
|
181
|
+
/**
|
182
|
+
* @deprecated
|
183
|
+
*/
|
184
|
+
readonly audioprocess: {
|
185
|
+
readonly eventInterface: "AudioProcessingEvent";
|
186
|
+
readonly bubbles: false;
|
187
|
+
readonly cancelable: false;
|
188
|
+
};
|
189
|
+
readonly audioend: {
|
190
|
+
readonly eventInterface: "Event";
|
191
|
+
readonly bubbles: false;
|
192
|
+
readonly cancelable: false;
|
193
|
+
};
|
194
|
+
readonly audiostart: {
|
195
|
+
readonly eventInterface: "Event";
|
196
|
+
readonly bubbles: false;
|
197
|
+
readonly cancelable: false;
|
198
|
+
};
|
199
|
+
readonly beforeprint: {
|
200
|
+
readonly eventInterface: "Event";
|
201
|
+
readonly bubbles: false;
|
202
|
+
readonly cancelable: false;
|
203
|
+
};
|
204
|
+
readonly beforeunload: {
|
205
|
+
readonly eventInterface: "BeforeUnloadEvent";
|
206
|
+
readonly bubbles: false;
|
207
|
+
readonly cancelable: true;
|
208
|
+
};
|
209
|
+
readonly beginEvent: {
|
210
|
+
readonly eventInterface: "TimeEvent";
|
211
|
+
readonly bubbles: false;
|
212
|
+
readonly cancelable: false;
|
213
|
+
};
|
214
|
+
readonly blur: {
|
215
|
+
readonly eventInterface: "FocusEvent";
|
216
|
+
readonly bubbles: false;
|
217
|
+
readonly cancelable: false;
|
218
|
+
};
|
219
|
+
readonly boundary: {
|
220
|
+
readonly eventInterface: "SpeechSynthesisEvent";
|
221
|
+
readonly bubbles: false;
|
222
|
+
readonly cancelable: false;
|
223
|
+
};
|
224
|
+
readonly cached: {
|
225
|
+
readonly eventInterface: "Event";
|
226
|
+
readonly bubbles: false;
|
227
|
+
readonly cancelable: false;
|
228
|
+
};
|
229
|
+
readonly canplay: {
|
230
|
+
readonly eventInterface: "Event";
|
231
|
+
readonly bubbles: false;
|
232
|
+
readonly cancelable: false;
|
233
|
+
};
|
234
|
+
readonly canplaythrough: {
|
235
|
+
readonly eventInterface: "Event";
|
236
|
+
readonly bubbles: false;
|
237
|
+
readonly cancelable: false;
|
238
|
+
};
|
239
|
+
readonly change: {
|
240
|
+
readonly eventInterface: "Event";
|
241
|
+
readonly bubbles: true;
|
242
|
+
readonly cancelable: false;
|
243
|
+
};
|
244
|
+
readonly chargingchange: {
|
245
|
+
readonly eventInterface: "Event";
|
246
|
+
readonly bubbles: false;
|
247
|
+
readonly cancelable: false;
|
248
|
+
};
|
249
|
+
readonly chargingtimechange: {
|
250
|
+
readonly eventInterface: "Event";
|
251
|
+
readonly bubbles: false;
|
252
|
+
readonly cancelable: false;
|
253
|
+
};
|
254
|
+
readonly checking: {
|
255
|
+
readonly eventInterface: "Event";
|
256
|
+
readonly bubbles: false;
|
257
|
+
readonly cancelable: false;
|
258
|
+
};
|
259
|
+
readonly click: {
|
260
|
+
readonly eventInterface: "MouseEvent";
|
261
|
+
readonly bubbles: true;
|
262
|
+
readonly cancelable: true;
|
263
|
+
};
|
264
|
+
readonly close: {
|
265
|
+
readonly eventInterface: "Event";
|
266
|
+
readonly bubbles: false;
|
267
|
+
readonly cancelable: false;
|
268
|
+
};
|
269
|
+
readonly complete: {
|
270
|
+
readonly eventInterface: "OfflineAudioCompletionEvent";
|
271
|
+
readonly bubbles: false;
|
272
|
+
readonly cancelable: false;
|
273
|
+
};
|
274
|
+
readonly compositionend: {
|
275
|
+
readonly eventInterface: "CompositionEvent";
|
276
|
+
readonly bubbles: true;
|
277
|
+
readonly cancelable: true;
|
278
|
+
};
|
279
|
+
readonly compositionstart: {
|
280
|
+
readonly eventInterface: "CompositionEvent";
|
281
|
+
readonly bubbles: true;
|
282
|
+
readonly cancelable: true;
|
283
|
+
};
|
284
|
+
readonly compositionupdate: {
|
285
|
+
readonly eventInterface: "CompositionEvent";
|
286
|
+
readonly bubbles: true;
|
287
|
+
readonly cancelable: false;
|
288
|
+
};
|
289
|
+
readonly contextmenu: {
|
290
|
+
readonly eventInterface: "MouseEvent";
|
291
|
+
readonly bubbles: true;
|
292
|
+
readonly cancelable: true;
|
293
|
+
};
|
294
|
+
readonly copy: {
|
295
|
+
readonly eventInterface: "ClipboardEvent";
|
296
|
+
readonly bubbles: true;
|
297
|
+
readonly cancelable: true;
|
298
|
+
};
|
299
|
+
readonly cut: {
|
300
|
+
readonly eventInterface: "ClipboardEvent";
|
301
|
+
readonly bubbles: true;
|
302
|
+
readonly cancelable: true;
|
303
|
+
};
|
304
|
+
readonly dblclick: {
|
305
|
+
readonly eventInterface: "MouseEvent";
|
306
|
+
readonly bubbles: true;
|
307
|
+
readonly cancelable: true;
|
308
|
+
};
|
309
|
+
readonly devicechange: {
|
310
|
+
readonly eventInterface: "Event";
|
311
|
+
readonly bubbles: false;
|
312
|
+
readonly cancelable: false;
|
313
|
+
};
|
314
|
+
readonly devicelight: {
|
315
|
+
readonly eventInterface: "DeviceLightEvent";
|
316
|
+
readonly bubbles: false;
|
317
|
+
readonly cancelable: false;
|
318
|
+
};
|
319
|
+
readonly devicemotion: {
|
320
|
+
readonly eventInterface: "DeviceMotionEvent";
|
321
|
+
readonly bubbles: false;
|
322
|
+
readonly cancelable: false;
|
323
|
+
};
|
324
|
+
readonly deviceorientation: {
|
325
|
+
readonly eventInterface: "DeviceOrientationEvent";
|
326
|
+
readonly bubbles: false;
|
327
|
+
readonly cancelable: false;
|
328
|
+
};
|
329
|
+
readonly deviceproximity: {
|
330
|
+
readonly eventInterface: "DeviceProximityEvent";
|
331
|
+
readonly bubbles: false;
|
332
|
+
readonly cancelable: false;
|
333
|
+
};
|
334
|
+
readonly dischargingtimechange: {
|
335
|
+
readonly eventInterface: "Event";
|
336
|
+
readonly bubbles: false;
|
337
|
+
readonly cancelable: false;
|
338
|
+
};
|
339
|
+
readonly DOMActivate: {
|
340
|
+
readonly eventInterface: "UIEvent";
|
341
|
+
readonly bubbles: true;
|
342
|
+
readonly cancelable: true;
|
343
|
+
};
|
344
|
+
readonly DOMAttributeNameChanged: {
|
345
|
+
readonly eventInterface: "MutationNameEvent";
|
346
|
+
readonly bubbles: true;
|
347
|
+
readonly cancelable: true;
|
348
|
+
};
|
349
|
+
readonly DOMAttrModified: {
|
350
|
+
readonly eventInterface: "MutationEvent";
|
351
|
+
readonly bubbles: true;
|
352
|
+
readonly cancelable: true;
|
353
|
+
};
|
354
|
+
readonly DOMCharacterDataModified: {
|
355
|
+
readonly eventInterface: "MutationEvent";
|
356
|
+
readonly bubbles: true;
|
357
|
+
readonly cancelable: true;
|
358
|
+
};
|
359
|
+
readonly DOMContentLoaded: {
|
360
|
+
readonly eventInterface: "Event";
|
361
|
+
readonly bubbles: true;
|
362
|
+
readonly cancelable: true;
|
363
|
+
};
|
364
|
+
readonly DOMElementNameChanged: {
|
365
|
+
readonly eventInterface: "MutationNameEvent";
|
366
|
+
readonly bubbles: true;
|
367
|
+
readonly cancelable: true;
|
368
|
+
};
|
369
|
+
readonly DOMFocusIn: {
|
370
|
+
readonly eventInterface: "FocusEvent";
|
371
|
+
readonly bubbles: true;
|
372
|
+
readonly cancelable: true;
|
373
|
+
};
|
374
|
+
readonly DOMFocusOut: {
|
375
|
+
readonly eventInterface: "FocusEvent";
|
376
|
+
readonly bubbles: true;
|
377
|
+
readonly cancelable: true;
|
378
|
+
};
|
379
|
+
readonly DOMNodeInserted: {
|
380
|
+
readonly eventInterface: "MutationEvent";
|
381
|
+
readonly bubbles: true;
|
382
|
+
readonly cancelable: true;
|
383
|
+
};
|
384
|
+
readonly DOMNodeInsertedIntoDocument: {
|
385
|
+
readonly eventInterface: "MutationEvent";
|
386
|
+
readonly bubbles: true;
|
387
|
+
readonly cancelable: true;
|
388
|
+
};
|
389
|
+
readonly DOMNodeRemoved: {
|
390
|
+
readonly eventInterface: "MutationEvent";
|
391
|
+
readonly bubbles: true;
|
392
|
+
readonly cancelable: true;
|
393
|
+
};
|
394
|
+
readonly DOMNodeRemovedFromDocument: {
|
395
|
+
readonly eventInterface: "MutationEvent";
|
396
|
+
readonly bubbles: true;
|
397
|
+
readonly cancelable: true;
|
398
|
+
};
|
399
|
+
/**
|
400
|
+
* @deprecated
|
401
|
+
*/
|
402
|
+
readonly DOMSubtreeModified: {
|
403
|
+
readonly eventInterface: "MutationEvent";
|
404
|
+
readonly bubbles: true;
|
405
|
+
readonly cancelable: false;
|
406
|
+
};
|
407
|
+
readonly downloading: {
|
408
|
+
readonly eventInterface: "Event";
|
409
|
+
readonly bubbles: false;
|
410
|
+
readonly cancelable: false;
|
411
|
+
};
|
412
|
+
readonly drag: {
|
413
|
+
readonly eventInterface: "DragEvent";
|
414
|
+
readonly bubbles: true;
|
415
|
+
readonly cancelable: true;
|
416
|
+
};
|
417
|
+
readonly dragend: {
|
418
|
+
readonly eventInterface: "DragEvent";
|
419
|
+
readonly bubbles: true;
|
420
|
+
readonly cancelable: false;
|
421
|
+
};
|
422
|
+
readonly dragenter: {
|
423
|
+
readonly eventInterface: "DragEvent";
|
424
|
+
readonly bubbles: true;
|
425
|
+
readonly cancelable: true;
|
426
|
+
};
|
427
|
+
readonly dragleave: {
|
428
|
+
readonly eventInterface: "DragEvent";
|
429
|
+
readonly bubbles: true;
|
430
|
+
readonly cancelable: false;
|
431
|
+
};
|
432
|
+
readonly dragover: {
|
433
|
+
readonly eventInterface: "DragEvent";
|
434
|
+
readonly bubbles: true;
|
435
|
+
readonly cancelable: true;
|
436
|
+
};
|
437
|
+
readonly dragstart: {
|
438
|
+
readonly eventInterface: "DragEvent";
|
439
|
+
readonly bubbles: true;
|
440
|
+
readonly cancelable: true;
|
441
|
+
};
|
442
|
+
readonly drop: {
|
443
|
+
readonly eventInterface: "DragEvent";
|
444
|
+
readonly bubbles: true;
|
445
|
+
readonly cancelable: true;
|
446
|
+
};
|
447
|
+
readonly durationchange: {
|
448
|
+
readonly eventInterface: "Event";
|
449
|
+
readonly bubbles: false;
|
450
|
+
readonly cancelable: false;
|
451
|
+
};
|
452
|
+
readonly emptied: {
|
453
|
+
readonly eventInterface: "Event";
|
454
|
+
readonly bubbles: false;
|
455
|
+
readonly cancelable: false;
|
456
|
+
};
|
457
|
+
readonly end: {
|
458
|
+
readonly eventInterface: "Event";
|
459
|
+
readonly bubbles: false;
|
460
|
+
readonly cancelable: false;
|
461
|
+
};
|
462
|
+
readonly ended: {
|
463
|
+
readonly eventInterface: "Event";
|
464
|
+
readonly bubbles: false;
|
465
|
+
readonly cancelable: false;
|
466
|
+
};
|
467
|
+
readonly endEvent: {
|
468
|
+
readonly eventInterface: "TimeEvent";
|
469
|
+
readonly bubbles: false;
|
470
|
+
readonly cancelable: false;
|
471
|
+
};
|
472
|
+
readonly error: {
|
473
|
+
readonly eventInterface: "Event";
|
474
|
+
readonly bubbles: false;
|
475
|
+
readonly cancelable: false;
|
476
|
+
};
|
477
|
+
readonly focus: {
|
478
|
+
readonly eventInterface: "FocusEvent";
|
479
|
+
readonly bubbles: false;
|
480
|
+
readonly cancelable: false;
|
481
|
+
};
|
482
|
+
readonly focusin: {
|
483
|
+
readonly eventInterface: "FocusEvent";
|
484
|
+
readonly bubbles: true;
|
485
|
+
readonly cancelable: false;
|
486
|
+
};
|
487
|
+
readonly focusout: {
|
488
|
+
readonly eventInterface: "FocusEvent";
|
489
|
+
readonly bubbles: true;
|
490
|
+
readonly cancelable: false;
|
491
|
+
};
|
492
|
+
readonly fullscreenchange: {
|
493
|
+
readonly eventInterface: "Event";
|
494
|
+
readonly bubbles: true;
|
495
|
+
readonly cancelable: false;
|
496
|
+
};
|
497
|
+
readonly fullscreenerror: {
|
498
|
+
readonly eventInterface: "Event";
|
499
|
+
readonly bubbles: true;
|
500
|
+
readonly cancelable: false;
|
501
|
+
};
|
502
|
+
readonly gamepadconnected: {
|
503
|
+
readonly eventInterface: "GamepadEvent";
|
504
|
+
readonly bubbles: false;
|
505
|
+
readonly cancelable: false;
|
506
|
+
};
|
507
|
+
readonly gamepaddisconnected: {
|
508
|
+
readonly eventInterface: "GamepadEvent";
|
509
|
+
readonly bubbles: false;
|
510
|
+
readonly cancelable: false;
|
511
|
+
};
|
512
|
+
readonly gotpointercapture: {
|
513
|
+
readonly eventInterface: "PointerEvent";
|
514
|
+
readonly bubbles: false;
|
515
|
+
readonly cancelable: false;
|
516
|
+
};
|
517
|
+
readonly hashchange: {
|
518
|
+
readonly eventInterface: "HashChangeEvent";
|
519
|
+
readonly bubbles: true;
|
520
|
+
readonly cancelable: false;
|
521
|
+
};
|
522
|
+
readonly lostpointercapture: {
|
523
|
+
readonly eventInterface: "PointerEvent";
|
524
|
+
readonly bubbles: false;
|
525
|
+
readonly cancelable: false;
|
526
|
+
};
|
527
|
+
readonly input: {
|
528
|
+
readonly eventInterface: "Event";
|
529
|
+
readonly bubbles: true;
|
530
|
+
readonly cancelable: false;
|
531
|
+
};
|
532
|
+
readonly invalid: {
|
533
|
+
readonly eventInterface: "Event";
|
534
|
+
readonly cancelable: true;
|
535
|
+
readonly bubbles: false;
|
536
|
+
};
|
537
|
+
readonly keydown: {
|
538
|
+
readonly eventInterface: "KeyboardEvent";
|
539
|
+
readonly bubbles: true;
|
540
|
+
readonly cancelable: true;
|
541
|
+
};
|
542
|
+
readonly keypress: {
|
543
|
+
readonly eventInterface: "KeyboardEvent";
|
544
|
+
readonly bubbles: true;
|
545
|
+
readonly cancelable: true;
|
546
|
+
};
|
547
|
+
readonly keyup: {
|
548
|
+
readonly eventInterface: "KeyboardEvent";
|
549
|
+
readonly bubbles: true;
|
550
|
+
readonly cancelable: true;
|
551
|
+
};
|
552
|
+
readonly languagechange: {
|
553
|
+
readonly eventInterface: "Event";
|
554
|
+
readonly bubbles: false;
|
555
|
+
readonly cancelable: false;
|
556
|
+
};
|
557
|
+
readonly levelchange: {
|
558
|
+
readonly eventInterface: "Event";
|
559
|
+
readonly bubbles: false;
|
560
|
+
readonly cancelable: false;
|
561
|
+
};
|
562
|
+
readonly load: {
|
563
|
+
readonly eventInterface: "UIEvent";
|
564
|
+
readonly bubbles: false;
|
565
|
+
readonly cancelable: false;
|
566
|
+
};
|
567
|
+
readonly loadeddata: {
|
568
|
+
readonly eventInterface: "Event";
|
569
|
+
readonly bubbles: false;
|
570
|
+
readonly cancelable: false;
|
571
|
+
};
|
572
|
+
readonly loadedmetadata: {
|
573
|
+
readonly eventInterface: "Event";
|
574
|
+
readonly bubbles: false;
|
575
|
+
readonly cancelable: false;
|
576
|
+
};
|
577
|
+
readonly loadend: {
|
578
|
+
readonly eventInterface: "ProgressEvent";
|
579
|
+
readonly bubbles: false;
|
580
|
+
readonly cancelable: false;
|
581
|
+
};
|
582
|
+
readonly loadstart: {
|
583
|
+
readonly eventInterface: "ProgressEvent";
|
584
|
+
readonly bubbles: false;
|
585
|
+
readonly cancelable: false;
|
586
|
+
};
|
587
|
+
readonly mark: {
|
588
|
+
readonly eventInterface: "SpeechSynthesisEvent";
|
589
|
+
readonly bubbles: false;
|
590
|
+
readonly cancelable: false;
|
591
|
+
};
|
592
|
+
readonly message: {
|
593
|
+
readonly eventInterface: "MessageEvent";
|
594
|
+
readonly bubbles: false;
|
595
|
+
readonly cancelable: false;
|
596
|
+
};
|
597
|
+
readonly messageerror: {
|
598
|
+
readonly eventInterface: "MessageEvent";
|
599
|
+
readonly bubbles: false;
|
600
|
+
readonly cancelable: false;
|
601
|
+
};
|
602
|
+
readonly mousedown: {
|
603
|
+
readonly eventInterface: "MouseEvent";
|
604
|
+
readonly bubbles: true;
|
605
|
+
readonly cancelable: true;
|
606
|
+
};
|
607
|
+
readonly mouseenter: {
|
608
|
+
readonly eventInterface: "MouseEvent";
|
609
|
+
readonly bubbles: false;
|
610
|
+
readonly cancelable: false;
|
611
|
+
};
|
612
|
+
readonly mouseleave: {
|
613
|
+
readonly eventInterface: "MouseEvent";
|
614
|
+
readonly bubbles: false;
|
615
|
+
readonly cancelable: false;
|
616
|
+
};
|
617
|
+
readonly mousemove: {
|
618
|
+
readonly eventInterface: "MouseEvent";
|
619
|
+
readonly bubbles: true;
|
620
|
+
readonly cancelable: true;
|
621
|
+
};
|
622
|
+
readonly mouseout: {
|
623
|
+
readonly eventInterface: "MouseEvent";
|
624
|
+
readonly bubbles: true;
|
625
|
+
readonly cancelable: true;
|
626
|
+
};
|
627
|
+
readonly mouseover: {
|
628
|
+
readonly eventInterface: "MouseEvent";
|
629
|
+
readonly bubbles: true;
|
630
|
+
readonly cancelable: true;
|
631
|
+
};
|
632
|
+
readonly mouseup: {
|
633
|
+
readonly eventInterface: "MouseEvent";
|
634
|
+
readonly bubbles: true;
|
635
|
+
readonly cancelable: true;
|
636
|
+
};
|
637
|
+
readonly nomatch: {
|
638
|
+
readonly eventInterface: "SpeechRecognitionEvent";
|
639
|
+
readonly bubbles: false;
|
640
|
+
readonly cancelable: false;
|
641
|
+
};
|
642
|
+
readonly notificationclick: {
|
643
|
+
readonly eventInterface: "NotificationEvent";
|
644
|
+
readonly bubbles: false;
|
645
|
+
readonly cancelable: false;
|
646
|
+
};
|
647
|
+
readonly noupdate: {
|
648
|
+
readonly eventInterface: "Event";
|
649
|
+
readonly bubbles: false;
|
650
|
+
readonly cancelable: false;
|
651
|
+
};
|
652
|
+
readonly obsolete: {
|
653
|
+
readonly eventInterface: "Event";
|
654
|
+
readonly bubbles: false;
|
655
|
+
readonly cancelable: false;
|
656
|
+
};
|
657
|
+
readonly offline: {
|
658
|
+
readonly eventInterface: "Event";
|
659
|
+
readonly bubbles: false;
|
660
|
+
readonly cancelable: false;
|
661
|
+
};
|
662
|
+
readonly online: {
|
663
|
+
readonly eventInterface: "Event";
|
664
|
+
readonly bubbles: false;
|
665
|
+
readonly cancelable: false;
|
666
|
+
};
|
667
|
+
readonly open: {
|
668
|
+
readonly eventInterface: "Event";
|
669
|
+
readonly bubbles: false;
|
670
|
+
readonly cancelable: false;
|
671
|
+
};
|
672
|
+
readonly orientationchange: {
|
673
|
+
readonly eventInterface: "Event";
|
674
|
+
readonly bubbles: false;
|
675
|
+
readonly cancelable: false;
|
676
|
+
};
|
677
|
+
readonly pagehide: {
|
678
|
+
readonly eventInterface: "PageTransitionEvent";
|
679
|
+
readonly bubbles: false;
|
680
|
+
readonly cancelable: false;
|
681
|
+
};
|
682
|
+
readonly pageshow: {
|
683
|
+
readonly eventInterface: "PageTransitionEvent";
|
684
|
+
readonly bubbles: false;
|
685
|
+
readonly cancelable: false;
|
686
|
+
};
|
687
|
+
readonly paste: {
|
688
|
+
readonly eventInterface: "ClipboardEvent";
|
689
|
+
readonly bubbles: true;
|
690
|
+
readonly cancelable: true;
|
691
|
+
};
|
692
|
+
readonly pause: {
|
693
|
+
readonly eventInterface: "SpeechSynthesisEvent";
|
694
|
+
readonly bubbles: false;
|
695
|
+
readonly cancelable: false;
|
696
|
+
};
|
697
|
+
readonly pointercancel: {
|
698
|
+
readonly eventInterface: "PointerEvent";
|
699
|
+
readonly bubbles: true;
|
700
|
+
readonly cancelable: false;
|
701
|
+
};
|
702
|
+
readonly pointerdown: {
|
703
|
+
readonly eventInterface: "PointerEvent";
|
704
|
+
readonly bubbles: true;
|
705
|
+
readonly cancelable: true;
|
706
|
+
};
|
707
|
+
readonly pointerenter: {
|
708
|
+
readonly eventInterface: "PointerEvent";
|
709
|
+
readonly bubbles: false;
|
710
|
+
readonly cancelable: false;
|
711
|
+
};
|
712
|
+
readonly pointerleave: {
|
713
|
+
readonly eventInterface: "PointerEvent";
|
714
|
+
readonly bubbles: false;
|
715
|
+
readonly cancelable: false;
|
716
|
+
};
|
717
|
+
readonly pointerlockchange: {
|
718
|
+
readonly eventInterface: "Event";
|
719
|
+
readonly bubbles: true;
|
720
|
+
readonly cancelable: false;
|
721
|
+
};
|
722
|
+
readonly pointerlockerror: {
|
723
|
+
readonly eventInterface: "Event";
|
724
|
+
readonly bubbles: true;
|
725
|
+
readonly cancelable: false;
|
726
|
+
};
|
727
|
+
readonly pointermove: {
|
728
|
+
readonly eventInterface: "PointerEvent";
|
729
|
+
readonly bubbles: true;
|
730
|
+
readonly cancelable: true;
|
731
|
+
};
|
732
|
+
readonly pointerout: {
|
733
|
+
readonly eventInterface: "PointerEvent";
|
734
|
+
readonly bubbles: true;
|
735
|
+
readonly cancelable: true;
|
736
|
+
};
|
737
|
+
readonly pointerover: {
|
738
|
+
readonly eventInterface: "PointerEvent";
|
739
|
+
readonly bubbles: true;
|
740
|
+
readonly cancelable: true;
|
741
|
+
};
|
742
|
+
readonly pointerup: {
|
743
|
+
readonly eventInterface: "PointerEvent";
|
744
|
+
readonly bubbles: true;
|
745
|
+
readonly cancelable: true;
|
746
|
+
};
|
747
|
+
readonly play: {
|
748
|
+
readonly eventInterface: "Event";
|
749
|
+
readonly bubbles: false;
|
750
|
+
readonly cancelable: false;
|
751
|
+
};
|
752
|
+
readonly playing: {
|
753
|
+
readonly eventInterface: "Event";
|
754
|
+
readonly bubbles: false;
|
755
|
+
readonly cancelable: false;
|
756
|
+
};
|
757
|
+
readonly popstate: {
|
758
|
+
readonly eventInterface: "PopStateEvent";
|
759
|
+
readonly bubbles: true;
|
760
|
+
readonly cancelable: false;
|
761
|
+
};
|
762
|
+
readonly progress: {
|
763
|
+
readonly eventInterface: "ProgressEvent";
|
764
|
+
readonly bubbles: false;
|
765
|
+
readonly cancelable: false;
|
766
|
+
};
|
767
|
+
readonly push: {
|
768
|
+
readonly eventInterface: "PushEvent";
|
769
|
+
readonly bubbles: false;
|
770
|
+
readonly cancelable: false;
|
771
|
+
};
|
772
|
+
readonly pushsubscriptionchange: {
|
773
|
+
readonly eventInterface: "PushEvent";
|
774
|
+
readonly bubbles: false;
|
775
|
+
readonly cancelable: false;
|
776
|
+
};
|
777
|
+
readonly ratechange: {
|
778
|
+
readonly eventInterface: "Event";
|
779
|
+
readonly bubbles: false;
|
780
|
+
readonly cancelable: false;
|
781
|
+
};
|
782
|
+
readonly readystatechange: {
|
783
|
+
readonly eventInterface: "Event";
|
784
|
+
readonly bubbles: false;
|
785
|
+
readonly cancelable: false;
|
786
|
+
};
|
787
|
+
readonly repeatEvent: {
|
788
|
+
readonly eventInterface: "TimeEvent";
|
789
|
+
readonly bubbles: false;
|
790
|
+
readonly cancelable: false;
|
791
|
+
};
|
792
|
+
readonly reset: {
|
793
|
+
readonly eventInterface: "Event";
|
794
|
+
readonly bubbles: true;
|
795
|
+
readonly cancelable: true;
|
796
|
+
};
|
797
|
+
readonly resize: {
|
798
|
+
readonly eventInterface: "UIEvent";
|
799
|
+
readonly bubbles: false;
|
800
|
+
readonly cancelable: false;
|
801
|
+
};
|
802
|
+
readonly resourcetimingbufferfull: {
|
803
|
+
readonly eventInterface: "Performance";
|
804
|
+
readonly bubbles: true;
|
805
|
+
readonly cancelable: true;
|
806
|
+
};
|
807
|
+
readonly result: {
|
808
|
+
readonly eventInterface: "SpeechRecognitionEvent";
|
809
|
+
readonly bubbles: false;
|
810
|
+
readonly cancelable: false;
|
811
|
+
};
|
812
|
+
readonly resume: {
|
813
|
+
readonly eventInterface: "SpeechSynthesisEvent";
|
814
|
+
readonly bubbles: false;
|
815
|
+
readonly cancelable: false;
|
816
|
+
};
|
817
|
+
readonly scroll: {
|
818
|
+
readonly eventInterface: "UIEvent";
|
819
|
+
readonly bubbles: false;
|
820
|
+
readonly cancelable: false;
|
821
|
+
};
|
822
|
+
readonly seeked: {
|
823
|
+
readonly eventInterface: "Event";
|
824
|
+
readonly bubbles: false;
|
825
|
+
readonly cancelable: false;
|
826
|
+
};
|
827
|
+
readonly seeking: {
|
828
|
+
readonly eventInterface: "Event";
|
829
|
+
readonly bubbles: false;
|
830
|
+
readonly cancelable: false;
|
831
|
+
};
|
832
|
+
readonly select: {
|
833
|
+
readonly eventInterface: "UIEvent";
|
834
|
+
readonly bubbles: true;
|
835
|
+
readonly cancelable: false;
|
836
|
+
};
|
837
|
+
readonly selectstart: {
|
838
|
+
readonly eventInterface: "Event";
|
839
|
+
readonly bubbles: true;
|
840
|
+
readonly cancelable: true;
|
841
|
+
};
|
842
|
+
readonly selectionchange: {
|
843
|
+
readonly eventInterface: "Event";
|
844
|
+
readonly bubbles: false;
|
845
|
+
readonly cancelable: false;
|
846
|
+
};
|
847
|
+
readonly show: {
|
848
|
+
readonly eventInterface: "MouseEvent";
|
849
|
+
readonly bubbles: false;
|
850
|
+
readonly cancelable: false;
|
851
|
+
};
|
852
|
+
readonly slotchange: {
|
853
|
+
readonly eventInterface: "Event";
|
854
|
+
readonly bubbles: true;
|
855
|
+
readonly cancelable: false;
|
856
|
+
};
|
857
|
+
readonly soundend: {
|
858
|
+
readonly eventInterface: "Event";
|
859
|
+
readonly bubbles: false;
|
860
|
+
readonly cancelable: false;
|
861
|
+
};
|
862
|
+
readonly soundstart: {
|
863
|
+
readonly eventInterface: "Event";
|
864
|
+
readonly bubbles: false;
|
865
|
+
readonly cancelable: false;
|
866
|
+
};
|
867
|
+
readonly speechend: {
|
868
|
+
readonly eventInterface: "Event";
|
869
|
+
readonly bubbles: false;
|
870
|
+
readonly cancelable: false;
|
871
|
+
};
|
872
|
+
readonly speechstart: {
|
873
|
+
readonly eventInterface: "Event";
|
874
|
+
readonly bubbles: false;
|
875
|
+
readonly cancelable: false;
|
876
|
+
};
|
877
|
+
readonly stalled: {
|
878
|
+
readonly eventInterface: "Event";
|
879
|
+
readonly bubbles: false;
|
880
|
+
readonly cancelable: false;
|
881
|
+
};
|
882
|
+
readonly start: {
|
883
|
+
readonly eventInterface: "SpeechSynthesisEvent";
|
884
|
+
readonly bubbles: false;
|
885
|
+
readonly cancelable: false;
|
886
|
+
};
|
887
|
+
readonly storage: {
|
888
|
+
readonly eventInterface: "StorageEvent";
|
889
|
+
readonly bubbles: false;
|
890
|
+
readonly cancelable: false;
|
891
|
+
};
|
892
|
+
readonly submit: {
|
893
|
+
readonly eventInterface: "Event";
|
894
|
+
readonly bubbles: true;
|
895
|
+
readonly cancelable: true;
|
896
|
+
};
|
897
|
+
readonly success: {
|
898
|
+
readonly eventInterface: "Event";
|
899
|
+
readonly bubbles: false;
|
900
|
+
readonly cancelable: false;
|
901
|
+
};
|
902
|
+
readonly suspend: {
|
903
|
+
readonly eventInterface: "Event";
|
904
|
+
readonly bubbles: false;
|
905
|
+
readonly cancelable: false;
|
906
|
+
};
|
907
|
+
readonly SVGAbort: {
|
908
|
+
readonly eventInterface: "SVGEvent";
|
909
|
+
readonly bubbles: true;
|
910
|
+
readonly cancelable: false;
|
911
|
+
};
|
912
|
+
readonly SVGError: {
|
913
|
+
readonly eventInterface: "SVGEvent";
|
914
|
+
readonly bubbles: true;
|
915
|
+
readonly cancelable: false;
|
916
|
+
};
|
917
|
+
readonly SVGLoad: {
|
918
|
+
readonly eventInterface: "SVGEvent";
|
919
|
+
readonly bubbles: false;
|
920
|
+
readonly cancelable: false;
|
921
|
+
};
|
922
|
+
readonly SVGResize: {
|
923
|
+
readonly eventInterface: "SVGEvent";
|
924
|
+
readonly bubbles: true;
|
925
|
+
readonly cancelable: false;
|
926
|
+
};
|
927
|
+
readonly SVGScroll: {
|
928
|
+
readonly eventInterface: "SVGEvent";
|
929
|
+
readonly bubbles: true;
|
930
|
+
readonly cancelable: false;
|
931
|
+
};
|
932
|
+
readonly SVGUnload: {
|
933
|
+
readonly eventInterface: "SVGEvent";
|
934
|
+
readonly bubbles: false;
|
935
|
+
readonly cancelable: false;
|
936
|
+
};
|
937
|
+
readonly SVGZoom: {
|
938
|
+
readonly eventInterface: "SVGZoomEvent";
|
939
|
+
readonly bubbles: true;
|
940
|
+
readonly cancelable: false;
|
941
|
+
};
|
942
|
+
readonly timeout: {
|
943
|
+
readonly eventInterface: "ProgressEvent";
|
944
|
+
readonly bubbles: false;
|
945
|
+
readonly cancelable: false;
|
946
|
+
};
|
947
|
+
readonly timeupdate: {
|
948
|
+
readonly eventInterface: "Event";
|
949
|
+
readonly bubbles: false;
|
950
|
+
readonly cancelable: false;
|
951
|
+
};
|
952
|
+
readonly touchcancel: {
|
953
|
+
readonly eventInterface: "TouchEvent";
|
954
|
+
readonly bubbles: true;
|
955
|
+
readonly cancelable: false;
|
956
|
+
};
|
957
|
+
readonly touchend: {
|
958
|
+
readonly eventInterface: "TouchEvent";
|
959
|
+
readonly bubbles: true;
|
960
|
+
readonly cancelable: true;
|
961
|
+
};
|
962
|
+
readonly touchmove: {
|
963
|
+
readonly eventInterface: "TouchEvent";
|
964
|
+
readonly bubbles: true;
|
965
|
+
readonly cancelable: true;
|
966
|
+
};
|
967
|
+
readonly touchstart: {
|
968
|
+
readonly eventInterface: "TouchEvent";
|
969
|
+
readonly bubbles: true;
|
970
|
+
readonly cancelable: true;
|
971
|
+
};
|
972
|
+
readonly transitionend: {
|
973
|
+
readonly eventInterface: "TransitionEvent";
|
974
|
+
readonly bubbles: true;
|
975
|
+
readonly cancelable: true;
|
976
|
+
};
|
977
|
+
readonly unload: {
|
978
|
+
readonly eventInterface: "UIEvent";
|
979
|
+
readonly bubbles: false;
|
980
|
+
readonly cancelable: false;
|
981
|
+
};
|
982
|
+
readonly updateready: {
|
983
|
+
readonly eventInterface: "Event";
|
984
|
+
readonly bubbles: false;
|
985
|
+
readonly cancelable: false;
|
986
|
+
};
|
987
|
+
readonly userproximity: {
|
988
|
+
readonly eventInterface: "UserProximityEvent";
|
989
|
+
readonly bubbles: false;
|
990
|
+
readonly cancelable: false;
|
991
|
+
};
|
992
|
+
readonly voiceschanged: {
|
993
|
+
readonly eventInterface: "Event";
|
994
|
+
readonly bubbles: false;
|
995
|
+
readonly cancelable: false;
|
996
|
+
};
|
997
|
+
readonly visibilitychange: {
|
998
|
+
readonly eventInterface: "Event";
|
999
|
+
readonly bubbles: true;
|
1000
|
+
readonly cancelable: false;
|
1001
|
+
};
|
1002
|
+
readonly volumechange: {
|
1003
|
+
readonly eventInterface: "Event";
|
1004
|
+
readonly bubbles: false;
|
1005
|
+
readonly cancelable: false;
|
1006
|
+
};
|
1007
|
+
readonly waiting: {
|
1008
|
+
readonly eventInterface: "Event";
|
1009
|
+
readonly bubbles: false;
|
1010
|
+
readonly cancelable: false;
|
1011
|
+
};
|
1012
|
+
readonly wheel: {
|
1013
|
+
readonly eventInterface: "WheelEvent";
|
1014
|
+
readonly bubbles: true;
|
1015
|
+
readonly cancelable: true;
|
1016
|
+
};
|
1017
|
+
};
|
1018
|
+
|
1019
|
+
interface TriggerOptions {
|
1020
|
+
code?: String;
|
1021
|
+
key?: String;
|
1022
|
+
keyCode?: Number;
|
1023
|
+
[custom: string]: any;
|
1024
|
+
}
|
1025
|
+
|
1026
|
+
declare class DOMWrapper<NodeType extends Node> extends BaseWrapper<NodeType> {
|
1027
|
+
constructor(element: NodeType);
|
1028
|
+
getRootNodes(): VueNode<NodeType>[];
|
1029
|
+
getCurrentComponent(): vue.ComponentInternalInstance | undefined;
|
1030
|
+
find<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>;
|
1031
|
+
find<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>;
|
1032
|
+
find<T extends Element = Element>(selector: string): DOMWrapper<T>;
|
1033
|
+
find<T extends Node = Node>(selector: string | RefSelector): DOMWrapper<T>;
|
1034
|
+
findAll<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>[];
|
1035
|
+
findAll<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>[];
|
1036
|
+
findAll<T extends Element>(selector: string): DOMWrapper<T>[];
|
1037
|
+
findAllComponents(selector: any): any;
|
1038
|
+
private setChecked;
|
1039
|
+
setValue(value?: any): Promise<void>;
|
1040
|
+
private setSelected;
|
1041
|
+
}
|
1042
|
+
|
1043
|
+
interface WrapperLike {
|
1044
|
+
readonly element: Node;
|
1045
|
+
find<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>;
|
1046
|
+
find<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>;
|
1047
|
+
find<T extends Element = Element>(selector: string): DOMWrapper<T>;
|
1048
|
+
find<T extends Node = Node>(selector: string | RefSelector): DOMWrapper<T>;
|
1049
|
+
findAll<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>[];
|
1050
|
+
findAll<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>[];
|
1051
|
+
findAll<T extends Element>(selector: string): DOMWrapper<T>[];
|
1052
|
+
findAll(selector: string): DOMWrapper<Element>[];
|
1053
|
+
findComponent<T extends never>(selector: string): WrapperLike;
|
1054
|
+
findComponent<T extends DefinedComponent>(selector: T | Exclude<FindComponentSelector, FunctionalComponent>): VueWrapper<InstanceType<T>>;
|
1055
|
+
findComponent<T extends FunctionalComponent>(selector: T | string): DOMWrapper<Element>;
|
1056
|
+
findComponent<T extends never>(selector: NameSelector | RefSelector): VueWrapper;
|
1057
|
+
findComponent<T extends ComponentPublicInstance>(selector: T | FindComponentSelector): VueWrapper<T>;
|
1058
|
+
findComponent(selector: FindComponentSelector): WrapperLike;
|
1059
|
+
findAllComponents<T extends never>(selector: string): WrapperLike[];
|
1060
|
+
findAllComponents<T extends DefinedComponent>(selector: T | Exclude<FindAllComponentsSelector, FunctionalComponent>): VueWrapper<InstanceType<T>>[];
|
1061
|
+
findAllComponents<T extends FunctionalComponent>(selector: string): DOMWrapper<Element>[];
|
1062
|
+
findAllComponents<T extends FunctionalComponent>(selector: T): DOMWrapper<Node>[];
|
1063
|
+
findAllComponents<T extends never>(selector: NameSelector): VueWrapper[];
|
1064
|
+
findAllComponents<T extends ComponentPublicInstance>(selector: T | FindAllComponentsSelector): VueWrapper<T>[];
|
1065
|
+
findAllComponents(selector: FindAllComponentsSelector): WrapperLike[];
|
1066
|
+
get<K extends keyof HTMLElementTagNameMap>(selector: K): Omit<DOMWrapper<HTMLElementTagNameMap[K]>, 'exists'>;
|
1067
|
+
get<K extends keyof SVGElementTagNameMap>(selector: K): Omit<DOMWrapper<SVGElementTagNameMap[K]>, 'exists'>;
|
1068
|
+
get<T extends Element = Element>(selector: string): Omit<DOMWrapper<T>, 'exists'>;
|
1069
|
+
get<T extends Node = Node>(selector: string | RefSelector): Omit<DOMWrapper<T>, 'exists'>;
|
1070
|
+
getComponent<T extends never>(selector: string): Omit<WrapperLike, 'exists'>;
|
1071
|
+
getComponent<T extends DefinedComponent>(selector: T | Exclude<FindComponentSelector, FunctionalComponent>): Omit<VueWrapper<InstanceType<T>>, 'exists'>;
|
1072
|
+
getComponent<T extends FunctionalComponent>(selector: T | string): Omit<DOMWrapper<Element>, 'exists'>;
|
1073
|
+
getComponent<T extends ComponentPublicInstance>(selector: T | FindComponentSelector): Omit<VueWrapper<T>, 'exists'>;
|
1074
|
+
getComponent<T extends never>(selector: FindComponentSelector): Omit<WrapperLike, 'exists'>;
|
1075
|
+
html(): string;
|
1076
|
+
classes(): string[];
|
1077
|
+
classes(className: string): boolean;
|
1078
|
+
classes(className?: string): string[] | boolean;
|
1079
|
+
attributes(): {
|
1080
|
+
[key: string]: string;
|
1081
|
+
};
|
1082
|
+
attributes(key: string): string | undefined;
|
1083
|
+
attributes(key?: string): {
|
1084
|
+
[key: string]: string;
|
1085
|
+
} | string | undefined;
|
1086
|
+
text(): string;
|
1087
|
+
exists(): boolean;
|
1088
|
+
setValue(value: any): Promise<void>;
|
1089
|
+
isVisible(): boolean;
|
1090
|
+
trigger(eventString: DomEventNameWithModifier, options?: TriggerOptions): Promise<void>;
|
1091
|
+
trigger(eventString: string, options?: TriggerOptions): Promise<void>;
|
1092
|
+
}
|
1093
|
+
|
1094
|
+
declare abstract class BaseWrapper<ElementType extends Node> implements WrapperLike {
|
1095
|
+
protected readonly wrapperElement: VueNode<ElementType>;
|
1096
|
+
protected abstract getRootNodes(): VueNode[];
|
1097
|
+
get element(): VueNode<ElementType>;
|
1098
|
+
constructor(element: ElementType);
|
1099
|
+
protected findAllDOMElements(selector: string): Element[];
|
1100
|
+
find<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>;
|
1101
|
+
find<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>;
|
1102
|
+
find<T extends Element = Element>(selector: string): DOMWrapper<T>;
|
1103
|
+
find<T extends Node = Node>(selector: string | RefSelector): DOMWrapper<T>;
|
1104
|
+
abstract findAll<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>[];
|
1105
|
+
abstract findAll<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>[];
|
1106
|
+
abstract findAll<T extends Element>(selector: string): DOMWrapper<T>[];
|
1107
|
+
abstract findAll(selector: string): DOMWrapper<Element>[];
|
1108
|
+
findComponent<T extends never>(selector: string): WrapperLike;
|
1109
|
+
findComponent<Props, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions>(selector: ComponentOptions<Props, RawBindings, D, C, M>): VueWrapper<CreateComponentPublicInstance<Props, RawBindings, D, C, M>>;
|
1110
|
+
findComponent<T extends ComponentOptions>(selector: string): VueWrapper<T extends ComponentOptions<infer Props, infer RawBindings, infer D, infer C, infer M> ? CreateComponentPublicInstance<Props, RawBindings, D, C, M> : VueWrapper<CreateComponentPublicInstance>>;
|
1111
|
+
findComponent<T extends DefinedComponent>(selector: T | Exclude<FindComponentSelector, FunctionalComponent>): VueWrapper<InstanceType<T>>;
|
1112
|
+
findComponent<T extends FunctionalComponent>(selector: T): DOMWrapper<Node>;
|
1113
|
+
findComponent<T extends FunctionalComponent>(selector: string): DOMWrapper<Element>;
|
1114
|
+
findComponent<T extends never>(selector: NameSelector | RefSelector): VueWrapper;
|
1115
|
+
findComponent<T extends ComponentPublicInstance>(selector: T | FindComponentSelector): VueWrapper<T>;
|
1116
|
+
findComponent<T extends never>(selector: FindComponentSelector): WrapperLike;
|
1117
|
+
findAllComponents<T extends never>(selector: string): WrapperLike[];
|
1118
|
+
findAllComponents<T extends DefinedComponent>(selector: T | Exclude<FindAllComponentsSelector, FunctionalComponent>): VueWrapper<InstanceType<T>>[];
|
1119
|
+
findAllComponents<T extends FunctionalComponent>(selector: T): DOMWrapper<Node>[];
|
1120
|
+
findAllComponents<T extends FunctionalComponent>(selector: string): DOMWrapper<Element>[];
|
1121
|
+
findAllComponents<T extends never>(selector: NameSelector): VueWrapper[];
|
1122
|
+
findAllComponents<T extends ComponentPublicInstance>(selector: T | FindAllComponentsSelector): VueWrapper<T>[];
|
1123
|
+
findAllComponents<T extends never>(selector: FindAllComponentsSelector): WrapperLike[];
|
1124
|
+
abstract setValue(value?: any): Promise<void>;
|
1125
|
+
html(): string;
|
1126
|
+
classes(): string[];
|
1127
|
+
classes(className: string): boolean;
|
1128
|
+
attributes(): {
|
1129
|
+
[key: string]: string;
|
1130
|
+
};
|
1131
|
+
attributes(key: string): string | undefined;
|
1132
|
+
text(): string;
|
1133
|
+
exists(): boolean;
|
1134
|
+
get<K extends keyof HTMLElementTagNameMap>(selector: K): Omit<DOMWrapper<HTMLElementTagNameMap[K]>, 'exists'>;
|
1135
|
+
get<K extends keyof SVGElementTagNameMap>(selector: K): Omit<DOMWrapper<SVGElementTagNameMap[K]>, 'exists'>;
|
1136
|
+
get<T extends Element = Element>(selector: string): Omit<DOMWrapper<T>, 'exists'>;
|
1137
|
+
get<T extends Node = Node>(selector: string | RefSelector): Omit<DOMWrapper<T>, 'exists'>;
|
1138
|
+
getComponent<T extends never>(selector: string): Omit<WrapperLike, 'exists'>;
|
1139
|
+
getComponent<T extends DefinedComponent>(selector: T | Exclude<FindComponentSelector, FunctionalComponent>): Omit<VueWrapper<InstanceType<T>>, 'exists'>;
|
1140
|
+
getComponent<T extends FunctionalComponent>(selector: T | string): Omit<DOMWrapper<Element>, 'exists'>;
|
1141
|
+
getComponent<T extends never>(selector: NameSelector | RefSelector): Omit<VueWrapper, 'exists'>;
|
1142
|
+
getComponent<T extends ComponentPublicInstance>(selector: T | FindComponentSelector): Omit<VueWrapper<T>, 'exists'>;
|
1143
|
+
getComponent<T extends never>(selector: FindComponentSelector): Omit<WrapperLike, 'exists'>;
|
1144
|
+
protected isDisabled: () => boolean;
|
1145
|
+
isVisible(): boolean;
|
1146
|
+
protected abstract getCurrentComponent(): ComponentInternalInstance | void;
|
1147
|
+
trigger(eventString: DomEventNameWithModifier, options?: TriggerOptions): Promise<void>;
|
1148
|
+
trigger(eventString: string, options?: TriggerOptions): Promise<void>;
|
1149
|
+
}
|
1150
|
+
|
1151
|
+
declare class VueWrapper<T extends Omit<ComponentPublicInstance, '$emit' | keyof ComponentCustomProperties> & {
|
1152
|
+
$emit: (event: any, ...args: any[]) => void;
|
1153
|
+
} & ComponentCustomProperties = ComponentPublicInstance> extends BaseWrapper<Node> {
|
1154
|
+
private componentVM;
|
1155
|
+
private rootVM;
|
1156
|
+
private __app;
|
1157
|
+
private __setProps;
|
1158
|
+
constructor(app: App | null, vm: T, setProps?: (props: Record<string, unknown>) => void);
|
1159
|
+
private get hasMultipleRoots();
|
1160
|
+
protected getRootNodes(): VueNode[];
|
1161
|
+
private get parentElement();
|
1162
|
+
getCurrentComponent(): vue.ComponentInternalInstance;
|
1163
|
+
exists(): boolean;
|
1164
|
+
findAll<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>[];
|
1165
|
+
findAll<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>[];
|
1166
|
+
findAll<T extends Element>(selector: string): DOMWrapper<T>[];
|
1167
|
+
private attachNativeEventListener;
|
1168
|
+
get element(): Element;
|
1169
|
+
get vm(): T;
|
1170
|
+
props(): {
|
1171
|
+
[key: string]: any;
|
1172
|
+
};
|
1173
|
+
props(selector: string): any;
|
1174
|
+
emitted<T = unknown>(): Record<string, T[]>;
|
1175
|
+
emitted<T = unknown[]>(eventName: string): undefined | T[];
|
1176
|
+
isVisible(): boolean;
|
1177
|
+
setData(data: Record<string, unknown>): Promise<void>;
|
1178
|
+
setProps(props: Record<string, unknown>): Promise<void>;
|
1179
|
+
setValue(value: unknown, prop?: string): Promise<void>;
|
1180
|
+
unmount(): void;
|
1181
|
+
}
|
1182
|
+
|
1183
|
+
declare type CustomCreateStub = (params: {
|
1184
|
+
name: string;
|
1185
|
+
component: ConcreteComponent;
|
1186
|
+
}) => ConcreteComponent;
|
1187
|
+
|
1188
|
+
interface GlobalConfigOptions {
|
1189
|
+
global: Required<Omit<GlobalMountOptions$1, 'stubs'>> & {
|
1190
|
+
stubs: Record<string, Stub>;
|
1191
|
+
};
|
1192
|
+
plugins: {
|
1193
|
+
VueWrapper: Pluggable<VueWrapper>;
|
1194
|
+
DOMWrapper: Pluggable<DOMWrapper<Node>>;
|
1195
|
+
createStubs?: CustomCreateStub;
|
1196
|
+
};
|
1197
|
+
renderStubDefaultSlot: boolean;
|
1198
|
+
}
|
1199
|
+
interface Plugin<Instance, O> {
|
1200
|
+
handler(instance: Instance): Record<string, any>;
|
1201
|
+
handler(instance: Instance, options: O): Record<string, any>;
|
1202
|
+
options: O;
|
47
1203
|
}
|
48
|
-
declare
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
}
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
}
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
}
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
1204
|
+
declare class Pluggable<Instance = DOMWrapper<Node>> {
|
1205
|
+
installedPlugins: Plugin<Instance, any>[];
|
1206
|
+
install<O>(handler: (instance: Instance) => Record<string, any>): void;
|
1207
|
+
install<O>(handler: (instance: Instance, options: O) => Record<string, any>, options: O): void;
|
1208
|
+
extend(instance: Instance): void;
|
1209
|
+
/** For testing */
|
1210
|
+
reset(): void;
|
1211
|
+
}
|
1212
|
+
|
1213
|
+
declare function createWrapperError<T extends object>(wrapperType: 'DOMWrapper' | 'VueWrapper'): T;
|
1214
|
+
|
1215
|
+
declare function flushPromises(): Promise<unknown>;
|
1216
|
+
|
1217
|
+
declare function disableAutoUnmount(): void;
|
1218
|
+
declare function enableAutoUnmount(hook: Function): void;
|
1219
|
+
|
1220
|
+
declare const VueTestUtils: {
|
1221
|
+
enableAutoUnmount: typeof enableAutoUnmount;
|
1222
|
+
disableAutoUnmount: typeof disableAutoUnmount;
|
1223
|
+
RouterLinkStub: DefineComponent<{
|
1224
|
+
to: {
|
1225
|
+
type: (ObjectConstructor | StringConstructor)[];
|
1226
|
+
required: true;
|
1227
|
+
};
|
1228
|
+
custom: {
|
1229
|
+
type: BooleanConstructor;
|
1230
|
+
default: boolean;
|
1231
|
+
};
|
1232
|
+
}, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
1233
|
+
to: {
|
1234
|
+
type: (ObjectConstructor | StringConstructor)[];
|
1235
|
+
required: true;
|
1236
|
+
};
|
1237
|
+
custom: {
|
1238
|
+
type: BooleanConstructor;
|
1239
|
+
default: boolean;
|
1240
|
+
};
|
1241
|
+
}>>, {
|
1242
|
+
custom: boolean;
|
1243
|
+
}>;
|
1244
|
+
VueWrapper: typeof VueWrapper;
|
1245
|
+
DOMWrapper: typeof DOMWrapper;
|
1246
|
+
BaseWrapper: typeof BaseWrapper;
|
1247
|
+
config: GlobalConfigOptions;
|
1248
|
+
flushPromises: typeof flushPromises;
|
1249
|
+
createWrapperError: typeof createWrapperError;
|
1250
|
+
};
|
1251
|
+
|
1252
|
+
declare type GlobalMountOptions = Required<MountingOptions$1<any>>['global'];
|
1253
|
+
declare global {
|
1254
|
+
namespace Cypress {
|
1255
|
+
interface Cypress {
|
1256
|
+
vueWrapper: VueWrapper<ComponentPublicInstance>;
|
1257
|
+
vue: ComponentPublicInstance;
|
1258
|
+
}
|
1259
|
+
}
|
1260
|
+
}
|
1261
|
+
declare type MountingOptions<Props, Data = {}> = Omit<MountingOptions$1<Props, Data>, 'attachTo'> & {
|
1262
|
+
log?: boolean;
|
1263
|
+
/**
|
1264
|
+
* @deprecated use vue-test-utils `global` instead
|
1265
|
+
*/
|
1266
|
+
extensions?: GlobalMountOptions & {
|
1267
|
+
use?: GlobalMountOptions['plugins'];
|
1268
|
+
mixin?: GlobalMountOptions['mixins'];
|
1269
|
+
};
|
1270
|
+
};
|
1271
|
+
declare type CyMountOptions<Props, Data = {}> = MountingOptions<Props, Data>;
|
1272
|
+
/**
|
1273
|
+
* The types for mount have been copied directly from the VTU mount
|
1274
|
+
* https://github.com/vuejs/vue-test-utils-next/blob/master/src/mount.ts.
|
1275
|
+
*
|
1276
|
+
* There isn't a good way to make them generic enough that we can extend them.
|
1277
|
+
*
|
1278
|
+
* In addition, we modify the types slightly.
|
1279
|
+
*
|
1280
|
+
* `MountOptions` are modifying, including some Cypress specific options like `styles`.
|
1281
|
+
* The return type is different. Instead of VueWrapper, it's Cypress.Chainable<VueWrapper<...>>.
|
1282
|
+
*/
|
1283
|
+
declare type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
1284
|
+
declare type ComponentMountingOptions<T> = T extends DefineComponent<infer PropsOrPropOptions, any, infer D, any, any> ? MountingOptions<Partial<ExtractDefaultPropTypes<PropsOrPropOptions>> & Omit<Readonly<ExtractPropTypes<PropsOrPropOptions>> & PublicProps, keyof ExtractDefaultPropTypes<PropsOrPropOptions>>, D> & Record<string, any> : MountingOptions<any>;
|
1285
|
+
declare function mount<V extends {}>(originalComponent: {
|
1286
|
+
new (...args: any[]): V;
|
1287
|
+
__vccOpts: any;
|
1288
|
+
}, options?: MountingOptions<any> & Record<string, any>): Cypress.Chainable<{
|
1289
|
+
wrapper: VueWrapper<ComponentPublicInstance<V>>;
|
1290
|
+
component: VueWrapper<ComponentPublicInstance<V>>['vm'];
|
1291
|
+
}>;
|
1292
|
+
declare function mount<V extends {}, P>(originalComponent: {
|
1293
|
+
new (...args: any[]): V;
|
1294
|
+
__vccOpts: any;
|
1295
|
+
defaultProps?: Record<string, Prop<any>> | string[];
|
1296
|
+
}, options?: MountingOptions<P & PublicProps> & Record<string, any>): Cypress.Chainable<{
|
1297
|
+
wrapper: VueWrapper<ComponentPublicInstance<V>>;
|
1298
|
+
component: VueWrapper<ComponentPublicInstance<V>>['vm'];
|
1299
|
+
}>;
|
1300
|
+
declare function mount<V extends {}>(originalComponent: {
|
1301
|
+
new (...args: any[]): V;
|
1302
|
+
registerHooks(keys: string[]): void;
|
1303
|
+
}, options?: MountingOptions<any> & Record<string, any>): Cypress.Chainable<{
|
1304
|
+
wrapper: VueWrapper<ComponentPublicInstance<V>>;
|
1305
|
+
component: VueWrapper<ComponentPublicInstance<V>>['vm'];
|
1306
|
+
}>;
|
1307
|
+
declare function mount<V extends {}, P>(originalComponent: {
|
1308
|
+
new (...args: any[]): V;
|
1309
|
+
props(Props: P): any;
|
1310
|
+
registerHooks(keys: string[]): void;
|
1311
|
+
}, options?: MountingOptions<P & PublicProps> & Record<string, any>): Cypress.Chainable<{
|
1312
|
+
wrapper: VueWrapper<ComponentPublicInstance<V>>;
|
1313
|
+
component: VueWrapper<ComponentPublicInstance<V>>['vm'];
|
1314
|
+
}>;
|
1315
|
+
declare function mount<Props extends {}, E extends EmitsOptions = {}>(originalComponent: FunctionalComponent<Props, E>, options?: MountingOptions<Props & PublicProps> & Record<string, any>): Cypress.Chainable<{
|
1316
|
+
wrapper: VueWrapper<ComponentPublicInstance<Props>>;
|
1317
|
+
component: VueWrapper<ComponentPublicInstance<Props>>['vm'];
|
1318
|
+
}>;
|
1319
|
+
declare function mount<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string, PP = PublicProps, Props = Readonly<ExtractPropTypes<PropsOrPropOptions>>, Defaults extends {} = ExtractDefaultPropTypes<PropsOrPropOptions>>(component: DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults>, options?: MountingOptions<Partial<Defaults> & Omit<Props & PublicProps, keyof Defaults>, D> & Record<string, any>): Cypress.Chainable<{
|
1320
|
+
wrapper: VueWrapper<InstanceType<DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults>>>;
|
1321
|
+
component: VueWrapper<InstanceType<DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults>>>['vm'];
|
1322
|
+
}>;
|
1323
|
+
declare function mount<T extends DefineComponent<any, any, any, any>>(component: T, options?: ComponentMountingOptions<T>): Cypress.Chainable<{
|
1324
|
+
wrapper: VueWrapper<InstanceType<T>>;
|
1325
|
+
component: VueWrapper<InstanceType<T>>['vm'];
|
1326
|
+
}>;
|
1327
|
+
declare function mount<Props = {}, RawBindings = {}, D extends {} = {}, C extends ComputedOptions = {}, M extends Record<string, Function> = {}, E extends EmitsOptions = Record<string, any>, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, EE extends string = string>(componentOptions: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, E, Mixin, Extends, EE>, options?: MountingOptions<Props & PublicProps, D>): Cypress.Chainable<{
|
1328
|
+
wrapper: VueWrapper<ComponentPublicInstance<Props, RawBindings, D, C, M, E, VNodeProps & Props>>;
|
1329
|
+
component: VueWrapper<ComponentPublicInstance<Props, RawBindings, D, C, M, E, VNodeProps & Props>>['vm'];
|
1330
|
+
}> & Record<string, any>;
|
1331
|
+
declare function mount<PropNames extends string, RawBindings, D extends {}, C extends ComputedOptions = {}, M extends Record<string, Function> = {}, E extends EmitsOptions = Record<string, any>, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, EE extends string = string, Props extends Readonly<{
|
1332
|
+
[key in PropNames]?: any;
|
1333
|
+
}> = Readonly<{
|
1334
|
+
[key in PropNames]?: any;
|
1335
|
+
}>>(componentOptions: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, E, Mixin, Extends, EE, Props>, options?: MountingOptions<Props & PublicProps, D>): Cypress.Chainable<{
|
1336
|
+
wrapper: VueWrapper<ComponentPublicInstance<Props, RawBindings, D, C, M, E>>;
|
1337
|
+
component: VueWrapper<ComponentPublicInstance<Props, RawBindings, D, C, M, E>>['vm'];
|
1338
|
+
}>;
|
1339
|
+
declare function mount<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D extends {}, C extends ComputedOptions = {}, M extends Record<string, Function> = {}, E extends EmitsOptions = Record<string, any>, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, EE extends string = string>(componentOptions: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, E, Mixin, Extends, EE>, options?: MountingOptions<ExtractPropTypes<PropsOptions> & PublicProps, D>): Cypress.Chainable<{
|
1340
|
+
wrapper: VueWrapper<ComponentPublicInstance<ExtractPropTypes<PropsOptions>, RawBindings, D, C, M, E, VNodeProps & ExtractPropTypes<PropsOptions>>>;
|
1341
|
+
component: VueWrapper<ComponentPublicInstance<ExtractPropTypes<PropsOptions>, RawBindings, D, C, M, E, VNodeProps & ExtractPropTypes<PropsOptions>>>['vm'];
|
1342
|
+
}>;
|
1343
|
+
/**
|
1344
|
+
* Helper function for mounting a component quickly in test hooks.
|
1345
|
+
* @example
|
1346
|
+
* import {mountCallback} from '@cypress/vue'
|
1347
|
+
* beforeEach(mountVue(component, options))
|
1348
|
+
*
|
1349
|
+
* Removed as of Cypress 11.0.0.
|
1350
|
+
* @see https://on.cypress.io/migration-11-0-0-component-testing-updates
|
1351
|
+
*/
|
1352
|
+
declare function mountCallback(component: any, options?: any): () => void;
|
1353
|
+
|
1354
|
+
export { CyMountOptions, VueTestUtils, mount, mountCallback };
|