cypress 15.21.0 → 16.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/README.md +4 -1
- package/angular/angular/README.md +4 -1
- package/angular/angular/dist/index.d.ts +3 -19
- package/angular/angular/dist/index.js +70 -84
- package/angular/angular/package.json +11 -12
- package/angular/dist/index.d.ts +3 -19
- package/angular/dist/index.js +70 -84
- package/angular/package.json +11 -12
- package/dist/bin/cypress +2 -2
- package/dist/{cli-_xePNEPj.js → cli-Dl3GL9Ov.js} +1897 -1930
- package/dist/cli.js +2 -2
- package/dist/{cypress-DCSAOi2D.js → cypress-BfVf5_hP.js} +1 -1
- package/dist/cypress.js +3 -3
- package/dist/exec/spawn.js +1 -1
- package/dist/index.js +3 -3
- package/dist/{spawn-BkpC5qQ4.js → spawn-DpvsyDKg.js} +12 -12
- package/dist/{tap-BkTD6Abc.js → tap-tSM1ve9x.js} +41 -19
- package/mount-utils/dist/index.js +1 -1
- package/mount-utils/mount-utils/dist/index.js +1 -1
- package/mount-utils/mount-utils/package.json +5 -5
- package/mount-utils/package.json +5 -5
- package/package.json +5 -11
- package/react/dist/cypress-react.cjs.js +1 -1
- package/react/dist/cypress-react.esm-bundler.js +1 -1
- package/react/dist/index.d.ts +2 -1
- package/react/package.json +2 -2
- package/react/react/dist/cypress-react.cjs.js +1 -1
- package/react/react/dist/cypress-react.esm-bundler.js +1 -1
- package/react/react/dist/index.d.ts +2 -1
- package/react/react/package.json +2 -2
- package/svelte/dist/cypress-svelte.cjs.js +1 -1
- package/svelte/dist/cypress-svelte.esm-bundler.js +1 -1
- package/svelte/dist/index.d.ts +2 -1
- package/svelte/package.json +1 -1
- package/svelte/svelte/dist/cypress-svelte.cjs.js +1 -1
- package/svelte/svelte/dist/cypress-svelte.esm-bundler.js +1 -1
- package/svelte/svelte/dist/index.d.ts +2 -1
- package/svelte/svelte/package.json +1 -1
- package/types/cy-blob-util.d.ts +1 -1
- package/types/cypress.d.ts +32 -134
- package/vue/dist/cypress-vue.cjs.js +62 -66
- package/vue/dist/cypress-vue.esm-bundler.js +50 -54
- package/vue/dist/index.d.ts +120 -82
- package/vue/package.json +4 -4
- package/vue/vue/dist/cypress-vue.cjs.js +62 -66
- package/vue/vue/dist/cypress-vue.esm-bundler.js +50 -54
- package/vue/vue/dist/index.d.ts +120 -82
- package/vue/vue/package.json +4 -4
- package/angular-zoneless/README.md +0 -15
- package/angular-zoneless/angular-zoneless/README.md +0 -15
- package/angular-zoneless/angular-zoneless/dist/index.d.ts +0 -119
- package/angular-zoneless/angular-zoneless/dist/index.js +0 -482
- package/angular-zoneless/angular-zoneless/package.json +0 -74
- package/angular-zoneless/dist/index.d.ts +0 -119
- package/angular-zoneless/dist/index.js +0 -482
- package/angular-zoneless/package.json +0 -74
package/types/cypress.d.ts
CHANGED
|
@@ -413,9 +413,9 @@ declare namespace Cypress {
|
|
|
413
413
|
* ```
|
|
414
414
|
* Cypress.spec
|
|
415
415
|
* // {
|
|
416
|
-
* // name: "
|
|
417
|
-
* // relative: "cypress/
|
|
418
|
-
* // absolute: "/users/smith/projects/web/cypress/
|
|
416
|
+
* // name: "config_passing.cy.ts",
|
|
417
|
+
* // relative: "cypress/e2e/config_passing.cy.ts",
|
|
418
|
+
* // absolute: "/users/smith/projects/web/cypress/e2e/config_passing.cy.ts"
|
|
419
419
|
* // specType: "integration"
|
|
420
420
|
* // }
|
|
421
421
|
* ```
|
|
@@ -507,41 +507,6 @@ declare namespace Cypress {
|
|
|
507
507
|
*/
|
|
508
508
|
config(Object: TestConfigOverrides): void
|
|
509
509
|
|
|
510
|
-
// no real way to type without generics
|
|
511
|
-
/**
|
|
512
|
-
* Returns all environment variables set with CYPRESS_ prefix or in "env" object in "cypress.config.{js,ts,mjs,cjs}"
|
|
513
|
-
*
|
|
514
|
-
* @see https://on.cypress.io/env
|
|
515
|
-
* @deprecated Use {@linkcode Chainable.env cy.env()} or {@linkcode expose Cypress.expose()} instead.
|
|
516
|
-
*/
|
|
517
|
-
env(): ObjectLike
|
|
518
|
-
/**
|
|
519
|
-
* Returns specific environment variable or undefined
|
|
520
|
-
* @see https://on.cypress.io/env
|
|
521
|
-
* @example
|
|
522
|
-
* // cypress.config.js
|
|
523
|
-
* { "env": { "foo": "bar" } }
|
|
524
|
-
* Cypress.env("foo") // => bar
|
|
525
|
-
* @deprecated Use {@linkcode Chainable.env cy.env()} or {@linkcode expose Cypress.expose()} instead.
|
|
526
|
-
*/
|
|
527
|
-
env(key: string): any
|
|
528
|
-
/**
|
|
529
|
-
* Set value for a variable.
|
|
530
|
-
* Any value you change will be permanently changed for the remainder of your tests.
|
|
531
|
-
* @see https://on.cypress.io/env
|
|
532
|
-
* @example
|
|
533
|
-
* Cypress.env("host", "http://server.dev.local")
|
|
534
|
-
* @deprecated Use {@linkcode Chainable.env cy.env()} or {@linkcode expose Cypress.expose()} instead.
|
|
535
|
-
*/
|
|
536
|
-
env(key: string, value: any): void
|
|
537
|
-
/**
|
|
538
|
-
* Set values for multiple variables at once. Values are merged with existing values.
|
|
539
|
-
* @see https://on.cypress.io/env
|
|
540
|
-
* @example
|
|
541
|
-
* Cypress.env({ host: "http://server.dev.local", foo: "foo" })
|
|
542
|
-
* @deprecated Use {@linkcode Chainable.env cy.env()} or {@linkcode expose Cypress.expose()} instead.
|
|
543
|
-
*/
|
|
544
|
-
env(object: ObjectLike): void
|
|
545
510
|
/**
|
|
546
511
|
* Returns all exposed public configuration variables set with --expose in the CLI or in "expose" object in "cypress.config.{js,ts,mjs,cjs}"
|
|
547
512
|
*
|
|
@@ -1021,7 +986,7 @@ declare namespace Cypress {
|
|
|
1021
986
|
*
|
|
1022
987
|
* @see https://on.cypress.io/getalllocalstorage
|
|
1023
988
|
*/
|
|
1024
|
-
getAllLocalStorage(options?: Partial<Loggable>): Chainable<StorageByOrigin>
|
|
989
|
+
getAllLocalStorage(options?: Partial<Loggable & Timeoutable>): Chainable<StorageByOrigin>
|
|
1025
990
|
|
|
1026
991
|
/**
|
|
1027
992
|
* Clear local storage for all origins.
|
|
@@ -1040,7 +1005,7 @@ declare namespace Cypress {
|
|
|
1040
1005
|
*
|
|
1041
1006
|
* @see https://on.cypress.io/getallsessionstorage
|
|
1042
1007
|
*/
|
|
1043
|
-
getAllSessionStorage(options?: Partial<Loggable>): Chainable<StorageByOrigin>
|
|
1008
|
+
getAllSessionStorage(options?: Partial<Loggable & Timeoutable>): Chainable<StorageByOrigin>
|
|
1044
1009
|
|
|
1045
1010
|
/**
|
|
1046
1011
|
* Clear session storage for all origins.
|
|
@@ -1369,15 +1334,6 @@ declare namespace Cypress {
|
|
|
1369
1334
|
each<E extends Node = HTMLElement>(fn: (element: JQuery<E>, index: number, $list: E[]) => void): Chainable<JQuery<E>> // Can't properly infer type without breaking down Chainable
|
|
1370
1335
|
each(fn: (item: any, index: number, $list: any[]) => void): Chainable<Subject>
|
|
1371
1336
|
|
|
1372
|
-
/**
|
|
1373
|
-
* End a chain of commands
|
|
1374
|
-
*
|
|
1375
|
-
* @deprecated `cy.end()` has been deprecated and will be removed in a future release.
|
|
1376
|
-
* Instead of using `.end()` to break a chain, start a new chain of commands off of `cy`.
|
|
1377
|
-
* @see https://on.cypress.io/end
|
|
1378
|
-
*/
|
|
1379
|
-
end(): Chainable<null>
|
|
1380
|
-
|
|
1381
1337
|
/**
|
|
1382
1338
|
* Get A DOM element at a specific index in an array of elements.
|
|
1383
1339
|
*
|
|
@@ -1390,16 +1346,6 @@ declare namespace Cypress {
|
|
|
1390
1346
|
*/
|
|
1391
1347
|
eq<E extends Node = HTMLElement>(index: number, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery<E>>
|
|
1392
1348
|
|
|
1393
|
-
/**
|
|
1394
|
-
* Execute a system command.
|
|
1395
|
-
*
|
|
1396
|
-
* @deprecated `cy.exec()` has been deprecated and will be removed in a future major release.
|
|
1397
|
-
* Use {@linkcode Chainable.task cy.task()} instead, which runs in Node without depending on
|
|
1398
|
-
* the operating system, shell, or terminal of the machine running Cypress.
|
|
1399
|
-
* @see https://on.cypress.io/exec
|
|
1400
|
-
*/
|
|
1401
|
-
exec(command: string, options?: Partial<ExecOptions>): Chainable<Exec>
|
|
1402
|
-
|
|
1403
1349
|
/**
|
|
1404
1350
|
* Get the DOM elements that match a specific selector. Opposite of `.not()`
|
|
1405
1351
|
*
|
|
@@ -3026,17 +2972,6 @@ declare namespace Cypress {
|
|
|
3026
2972
|
*/
|
|
3027
2973
|
baseUrl: string | null
|
|
3028
2974
|
|
|
3029
|
-
/**
|
|
3030
|
-
* Whether Cypress should allow [Cypress.env()](https://on.cypress.io/env) API to be available in the browser.
|
|
3031
|
-
*
|
|
3032
|
-
* Cypress recommends migrating to the cy.env() command and disabling this within your Cypress configuration.
|
|
3033
|
-
*
|
|
3034
|
-
* The use of Cypress.env() will warn and throw an error when this is set to false.
|
|
3035
|
-
*
|
|
3036
|
-
* This will be the default behavior in a future major version of Cypress and Cypress.env() will be removed.
|
|
3037
|
-
* @default true
|
|
3038
|
-
*/
|
|
3039
|
-
allowCypressEnv: boolean
|
|
3040
2975
|
/**
|
|
3041
2976
|
* Any values to be set as [environment variables](https://on.cypress.io/environment-variables)
|
|
3042
2977
|
* @default {}
|
|
@@ -3057,6 +2992,11 @@ declare namespace Cypress {
|
|
|
3057
2992
|
* @default 50
|
|
3058
2993
|
*/
|
|
3059
2994
|
numTestsKeptInMemory: number
|
|
2995
|
+
/**
|
|
2996
|
+
* Enables improved memory management within Chromium-based browsers.
|
|
2997
|
+
* @default true
|
|
2998
|
+
*/
|
|
2999
|
+
manageBrowserMemory: boolean
|
|
3060
3000
|
/**
|
|
3061
3001
|
* Port used to host Cypress. Normally this is a randomly generated port
|
|
3062
3002
|
* @default null
|
|
@@ -3087,14 +3027,6 @@ declare namespace Cypress {
|
|
|
3087
3027
|
* @default 4000
|
|
3088
3028
|
*/
|
|
3089
3029
|
defaultCommandTimeout: number
|
|
3090
|
-
/**
|
|
3091
|
-
* Time, in milliseconds, to wait for a system command to finish executing during a [cy.exec()](https://on.cypress.io/exec) command
|
|
3092
|
-
* @default 60000
|
|
3093
|
-
* @deprecated `execTimeout` has been deprecated along with {@linkcode Chainable.exec cy.exec()} and will be
|
|
3094
|
-
* removed in a future major release. Use {@linkcode ResolvedConfigOptions.taskTimeout taskTimeout} with
|
|
3095
|
-
* {@linkcode Chainable.task cy.task()} instead.
|
|
3096
|
-
*/
|
|
3097
|
-
execTimeout: number
|
|
3098
3030
|
/**
|
|
3099
3031
|
* Time, in milliseconds, to wait for page transition events or [cy.visit()](https://on.cypress.io/visit), [cy.go()](https://on.cypress.io/go), [cy.reload()](https://on.cypress.io/reload) commands to fire their page load events
|
|
3100
3032
|
* @default 60000
|
|
@@ -3122,7 +3054,7 @@ declare namespace Cypress {
|
|
|
3122
3054
|
*/
|
|
3123
3055
|
requestTimeout: number
|
|
3124
3056
|
/**
|
|
3125
|
-
* Time, in milliseconds, to wait for a response in a [cy.request()](https://on.cypress.io/request), [cy.wait()](https://on.cypress.io/wait), [cy.fixture()](https://on.cypress.io/fixture), [cy.
|
|
3057
|
+
* Time, in milliseconds, to wait for a response in a [cy.request()](https://on.cypress.io/request), [cy.wait()](https://on.cypress.io/wait), [cy.fixture()](https://on.cypress.io/fixture), [cy.setCookie()](https://on.cypress.io/setcookie), [cy.clearCookie()](https://on.cypress.io/clearcookie), [cy.clearCookies()](https://on.cypress.io/clearcookies), and [cy.screenshot()](https://on.cypress.io/screenshot) commands
|
|
3126
3058
|
* @default 30000
|
|
3127
3059
|
*/
|
|
3128
3060
|
responseTimeout: number
|
|
@@ -3141,6 +3073,14 @@ declare namespace Cypress {
|
|
|
3141
3073
|
* @default "cypress/fixtures"
|
|
3142
3074
|
*/
|
|
3143
3075
|
fixturesFolder: string | false
|
|
3076
|
+
/**
|
|
3077
|
+
* Routes Chrome, Chromium, and Edge through the legacy network path, which re-issues
|
|
3078
|
+
* their connections over HTTP/1.1. Firefox, Electron, and WebKit always use it.
|
|
3079
|
+
*
|
|
3080
|
+
* @deprecated This option will be removed in a future version of Cypress.
|
|
3081
|
+
* @default false
|
|
3082
|
+
*/
|
|
3083
|
+
forceHttp1: boolean
|
|
3144
3084
|
/**
|
|
3145
3085
|
* Path to folder where files downloaded during a test are saved
|
|
3146
3086
|
* @default "cypress/downloads"
|
|
@@ -3278,8 +3218,6 @@ declare namespace Cypress {
|
|
|
3278
3218
|
* NOTE: Setting this flag to true removes Subresource Integrity (SRI) from third-party resources.
|
|
3279
3219
|
* To strip SRI from first-party resources as well, use `removeSRIAttributes`.
|
|
3280
3220
|
* Please see https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity.
|
|
3281
|
-
* This option has no impact on experimentalSourceRewriting and is only used with the
|
|
3282
|
-
* non-experimental source rewriter.
|
|
3283
3221
|
* @see https://on.cypress.io/experiments#Configuration
|
|
3284
3222
|
*/
|
|
3285
3223
|
experimentalModifyObstructiveThirdPartyCode: boolean
|
|
@@ -3299,11 +3237,6 @@ declare namespace Cypress {
|
|
|
3299
3237
|
* @default false
|
|
3300
3238
|
*/
|
|
3301
3239
|
experimentalRunAllSpecs?: boolean
|
|
3302
|
-
/**
|
|
3303
|
-
* Enables AST-based JS/HTML rewriting. This may fix issues caused by the existing regex-based JS/HTML replacement algorithm.
|
|
3304
|
-
* @default false
|
|
3305
|
-
*/
|
|
3306
|
-
experimentalSourceRewriting: boolean
|
|
3307
3240
|
/**
|
|
3308
3241
|
* Generate and save commands directly to your test suite by interacting with your app as an end user would.
|
|
3309
3242
|
* @default false
|
|
@@ -3315,15 +3248,15 @@ declare namespace Cypress {
|
|
|
3315
3248
|
*/
|
|
3316
3249
|
experimentalWebKitSupport: boolean
|
|
3317
3250
|
/**
|
|
3318
|
-
*
|
|
3319
|
-
*
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
*
|
|
3324
|
-
*
|
|
3251
|
+
* Determines which visibility algorithm Cypress uses to check element visibility.
|
|
3252
|
+
* `'modern'` uses a performance-optimized algorithm based on `checkVisibility()`.
|
|
3253
|
+
* `'legacy'` uses the traditional ancestor-walking algorithm.
|
|
3254
|
+
* @default 'modern'
|
|
3255
|
+
* @deprecated This option is deprecated. It exists only as a migration path
|
|
3256
|
+
* for tests that still need the legacy algorithm. The `'legacy'` value and
|
|
3257
|
+
* this entire option will be removed in a future version of Cypress.
|
|
3325
3258
|
*/
|
|
3326
|
-
|
|
3259
|
+
visibilityStrategy: 'legacy' | 'modern'
|
|
3327
3260
|
/**
|
|
3328
3261
|
* Allows for just-in-time compiling of a component test, which will only compile assets related to the component.
|
|
3329
3262
|
* This results in a smaller bundle under test, reducing resource constraints on a given machine. This option is recommended
|
|
@@ -3486,7 +3419,7 @@ declare namespace Cypress {
|
|
|
3486
3419
|
}
|
|
3487
3420
|
|
|
3488
3421
|
interface SuiteConfigOverrides extends Partial<
|
|
3489
|
-
Pick<ConfigOptions, 'animationDistanceThreshold' | 'blockHosts' | 'defaultCommandTimeout' | '
|
|
3422
|
+
Pick<ConfigOptions, 'animationDistanceThreshold' | 'blockHosts' | 'defaultCommandTimeout' | 'visibilityStrategy' | 'includeShadowDom' | 'numTestsKeptInMemory' | 'pageLoadTimeout' | 'redirectionLimit' | 'requestTimeout' | 'responseTimeout' | 'retries' | 'screenshotOnRunFailure' | 'slowTestThreshold' | 'scrollBehavior' | 'taskTimeout' | 'viewportHeight' | 'viewportWidth' | 'waitForAnimations'>
|
|
3490
3423
|
>, Partial<Pick<ResolvedConfigOptions, 'baseUrl' | 'testIsolation'>> {
|
|
3491
3424
|
browser?: IsBrowserMatcher | IsBrowserMatcher[]
|
|
3492
3425
|
keystrokeDelay?: number
|
|
@@ -3494,7 +3427,7 @@ declare namespace Cypress {
|
|
|
3494
3427
|
}
|
|
3495
3428
|
|
|
3496
3429
|
interface TestConfigOverrides extends Partial<
|
|
3497
|
-
Pick<ConfigOptions, 'animationDistanceThreshold' | 'blockHosts' | 'defaultCommandTimeout' | '
|
|
3430
|
+
Pick<ConfigOptions, 'animationDistanceThreshold' | 'blockHosts' | 'defaultCommandTimeout' | 'visibilityStrategy' | 'includeShadowDom' | 'numTestsKeptInMemory' | 'pageLoadTimeout' | 'redirectionLimit' | 'requestTimeout' | 'responseTimeout' | 'retries' | 'screenshotOnRunFailure' | 'slowTestThreshold' | 'scrollBehavior' | 'taskTimeout' | 'viewportHeight' | 'viewportWidth' | 'waitForAnimations'>
|
|
3498
3431
|
>, Partial<Pick<ResolvedConfigOptions, 'baseUrl'>> {
|
|
3499
3432
|
browser?: IsBrowserMatcher | IsBrowserMatcher[]
|
|
3500
3433
|
keystrokeDelay?: number
|
|
@@ -3768,37 +3701,14 @@ declare namespace Cypress {
|
|
|
3768
3701
|
verbose: boolean
|
|
3769
3702
|
}
|
|
3770
3703
|
|
|
3771
|
-
/**
|
|
3772
|
-
* Options object to change the default behavior of cy.exec().
|
|
3773
|
-
*
|
|
3774
|
-
* @deprecated `ExecOptions` has been deprecated along with {@linkcode Chainable.exec cy.exec()} and will be
|
|
3775
|
-
* removed in a future major release.
|
|
3776
|
-
*/
|
|
3777
|
-
interface ExecOptions extends Loggable, Timeoutable {
|
|
3778
|
-
/**
|
|
3779
|
-
* Whether to fail if the command exits with a non-zero code
|
|
3780
|
-
*
|
|
3781
|
-
* @default true
|
|
3782
|
-
*/
|
|
3783
|
-
failOnNonZeroExit: boolean
|
|
3784
|
-
/**
|
|
3785
|
-
* Object of environment variables to set before the command executes
|
|
3786
|
-
* (e.g. {USERNAME: 'johndoe'}). Will be merged with existing
|
|
3787
|
-
* system environment variables
|
|
3788
|
-
*
|
|
3789
|
-
* @default {}
|
|
3790
|
-
*/
|
|
3791
|
-
env: object
|
|
3792
|
-
}
|
|
3793
|
-
|
|
3794
3704
|
/**
|
|
3795
3705
|
* Options for Cypress.Keyboard.defaults()
|
|
3796
3706
|
*/
|
|
3797
3707
|
interface KeyboardDefaultsOptions {
|
|
3798
3708
|
/**
|
|
3799
|
-
* Time, in milliseconds, between each keystroke when typing.
|
|
3709
|
+
* Time, in milliseconds, between each keystroke when typing.
|
|
3800
3710
|
*
|
|
3801
|
-
* @default
|
|
3711
|
+
* @default 0
|
|
3802
3712
|
*/
|
|
3803
3713
|
keystrokeDelay: number
|
|
3804
3714
|
}
|
|
@@ -6552,7 +6462,7 @@ declare namespace Cypress {
|
|
|
6552
6462
|
(action: 'test:after:run', fn: (attributes: ObjectLike, test: Mocha.Test) => void): Cypress
|
|
6553
6463
|
}
|
|
6554
6464
|
|
|
6555
|
-
// $CommandQueue
|
|
6465
|
+
// $CommandQueue - a lot to type; implementation is not fully reflected here
|
|
6556
6466
|
interface CommandQueue extends ObjectLike {
|
|
6557
6467
|
logs(filters: any): any
|
|
6558
6468
|
add(obj: any): any
|
|
@@ -6641,18 +6551,6 @@ declare namespace Cypress {
|
|
|
6641
6551
|
set(options: Partial<EnqueuedCommandAttributes>): Log
|
|
6642
6552
|
}
|
|
6643
6553
|
|
|
6644
|
-
/**
|
|
6645
|
-
* The result yielded by cy.exec().
|
|
6646
|
-
*
|
|
6647
|
-
* @deprecated `Exec` has been deprecated along with {@linkcode Chainable.exec cy.exec()} and will be
|
|
6648
|
-
* removed in a future major release.
|
|
6649
|
-
*/
|
|
6650
|
-
interface Exec {
|
|
6651
|
-
exitCode: number
|
|
6652
|
-
stdout: string
|
|
6653
|
-
stderr: string
|
|
6654
|
-
}
|
|
6655
|
-
|
|
6656
6554
|
type TypedArray =
|
|
6657
6555
|
| Int8Array
|
|
6658
6556
|
| Uint8Array
|
|
@@ -12,56 +12,56 @@ var compilerDom = require('@vue/compiler-dom');
|
|
|
12
12
|
var serverRenderer = require('@vue/server-renderer');
|
|
13
13
|
|
|
14
14
|
function _interopNamespaceDefault(e) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
var n = Object.create(null);
|
|
16
|
+
if (e) {
|
|
17
|
+
Object.keys(e).forEach(function (k) {
|
|
18
|
+
if (k !== 'default') {
|
|
19
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
20
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return e[k]; }
|
|
23
|
+
});
|
|
24
|
+
}
|
|
23
25
|
});
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
n.default = e;
|
|
28
|
-
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
n.default = e;
|
|
28
|
+
return Object.freeze(n);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
var Vue__namespace = /*#__PURE__*/_interopNamespaceDefault(Vue);
|
|
32
32
|
|
|
33
|
-
/******************************************************************************
|
|
34
|
-
Copyright (c) Microsoft Corporation.
|
|
35
|
-
|
|
36
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
37
|
-
purpose with or without fee is hereby granted.
|
|
38
|
-
|
|
39
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
40
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
41
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
42
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
43
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
44
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
45
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
46
|
-
***************************************************************************** */
|
|
47
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
function __rest(s, e) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
63
|
-
|
|
64
|
-
|
|
33
|
+
/******************************************************************************
|
|
34
|
+
Copyright (c) Microsoft Corporation.
|
|
35
|
+
|
|
36
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
37
|
+
purpose with or without fee is hereby granted.
|
|
38
|
+
|
|
39
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
40
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
41
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
42
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
43
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
44
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
45
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
46
|
+
***************************************************************************** */
|
|
47
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
function __rest(s, e) {
|
|
51
|
+
var t = {};
|
|
52
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
53
|
+
t[p] = s[p];
|
|
54
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
55
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
57
|
+
t[p[i]] = s[p[i]];
|
|
58
|
+
}
|
|
59
|
+
return t;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
63
|
+
var e = new Error(message);
|
|
64
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
const ROOT_SELECTOR = '[data-cy-root]';
|
|
@@ -102,7 +102,7 @@ function setupHooks(optionalCallback) {
|
|
|
102
102
|
});
|
|
103
103
|
// @ts-ignore
|
|
104
104
|
Cypress.on('test:before:after:run:async', () => {
|
|
105
|
-
optionalCallback
|
|
105
|
+
optionalCallback?.();
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -8506,7 +8506,7 @@ function mount$1(inputComponent, options) {
|
|
|
8506
8506
|
trackInstance(wrapper);
|
|
8507
8507
|
return wrapper;
|
|
8508
8508
|
}
|
|
8509
|
-
var shallowMount
|
|
8509
|
+
var shallowMount = function (component, options) {
|
|
8510
8510
|
return mount$1(component, __assign(__assign({}, options), { shallow: true }));
|
|
8511
8511
|
};
|
|
8512
8512
|
|
|
@@ -8572,30 +8572,26 @@ function flushPromises() {
|
|
|
8572
8572
|
}
|
|
8573
8573
|
|
|
8574
8574
|
var _VueTestUtils = /*#__PURE__*/Object.freeze({
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8575
|
+
__proto__: null,
|
|
8576
|
+
BaseWrapper: BaseWrapper,
|
|
8577
|
+
DOMWrapper: DOMWrapper,
|
|
8578
|
+
RouterLinkStub: RouterLinkStub,
|
|
8579
|
+
VueWrapper: VueWrapper,
|
|
8580
|
+
config: config,
|
|
8581
|
+
createWrapperError: createWrapperError,
|
|
8582
|
+
disableAutoUnmount: disableAutoUnmount,
|
|
8583
|
+
enableAutoUnmount: enableAutoUnmount,
|
|
8584
|
+
flushPromises: flushPromises,
|
|
8585
|
+
mount: mount$1,
|
|
8586
|
+
renderToString: renderToString,
|
|
8587
|
+
shallowMount: shallowMount
|
|
8588
8588
|
});
|
|
8589
8589
|
|
|
8590
8590
|
const {
|
|
8591
8591
|
// We do not expose the `mount` from VueTestUtils, instead, we wrap it and expose a
|
|
8592
8592
|
// Cypress-compatible `mount` API.
|
|
8593
|
-
mount: VTUmount,
|
|
8594
|
-
|
|
8595
|
-
// It might be useful for people who like to migrate some Test Utils tests to Cypress,
|
|
8596
|
-
// so if we decide it is useful to expose, just remove the next line, and it will be
|
|
8597
|
-
// available on the `VueTestUtils` import.
|
|
8598
|
-
shallowMount } = _VueTestUtils, VueTestUtils = __rest(_VueTestUtils, ["mount", "shallowMount"]);
|
|
8593
|
+
mount: VTUmount} = _VueTestUtils, vueTestUtils = __rest(_VueTestUtils, ["mount", "shallowMount"]);
|
|
8594
|
+
const VueTestUtils = vueTestUtils;
|
|
8599
8595
|
const DEFAULT_COMP_NAME = 'unknown';
|
|
8600
8596
|
const VUE_ROOT = '__cy_vue_root';
|
|
8601
8597
|
const cleanup = () => {
|
|
@@ -6,42 +6,42 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import * as Vue from 'vue';
|
|
9
|
-
import { nextTick, defineComponent, computed, h, shallowReactive, reactive, ref, createApp, transformVNodeArgs, setDevtoolsHook,
|
|
9
|
+
import { nextTick, defineComponent, computed, h, shallowReactive, reactive, ref, createApp, transformVNodeArgs, setDevtoolsHook, isRef, TransitionGroup, Transition, BaseTransition } from 'vue';
|
|
10
10
|
import { compile } from '@vue/compiler-dom';
|
|
11
11
|
import { renderToString as renderToString$1 } from '@vue/server-renderer';
|
|
12
12
|
|
|
13
|
-
/******************************************************************************
|
|
14
|
-
Copyright (c) Microsoft Corporation.
|
|
15
|
-
|
|
16
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
17
|
-
purpose with or without fee is hereby granted.
|
|
18
|
-
|
|
19
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
20
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
21
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
22
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
23
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
24
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
25
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
26
|
-
***************************************************************************** */
|
|
27
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
function __rest(s, e) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
43
|
-
|
|
44
|
-
|
|
13
|
+
/******************************************************************************
|
|
14
|
+
Copyright (c) Microsoft Corporation.
|
|
15
|
+
|
|
16
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
17
|
+
purpose with or without fee is hereby granted.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
20
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
21
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
22
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
23
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
24
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
25
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
26
|
+
***************************************************************************** */
|
|
27
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
function __rest(s, e) {
|
|
31
|
+
var t = {};
|
|
32
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
33
|
+
t[p] = s[p];
|
|
34
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
35
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
36
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
37
|
+
t[p[i]] = s[p[i]];
|
|
38
|
+
}
|
|
39
|
+
return t;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
43
|
+
var e = new Error(message);
|
|
44
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
const ROOT_SELECTOR = '[data-cy-root]';
|
|
@@ -82,7 +82,7 @@ function setupHooks(optionalCallback) {
|
|
|
82
82
|
});
|
|
83
83
|
// @ts-ignore
|
|
84
84
|
Cypress.on('test:before:after:run:async', () => {
|
|
85
|
-
optionalCallback
|
|
85
|
+
optionalCallback?.();
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -8486,7 +8486,7 @@ function mount$1(inputComponent, options) {
|
|
|
8486
8486
|
trackInstance(wrapper);
|
|
8487
8487
|
return wrapper;
|
|
8488
8488
|
}
|
|
8489
|
-
var shallowMount
|
|
8489
|
+
var shallowMount = function (component, options) {
|
|
8490
8490
|
return mount$1(component, __assign(__assign({}, options), { shallow: true }));
|
|
8491
8491
|
};
|
|
8492
8492
|
|
|
@@ -8552,30 +8552,26 @@ function flushPromises() {
|
|
|
8552
8552
|
}
|
|
8553
8553
|
|
|
8554
8554
|
var _VueTestUtils = /*#__PURE__*/Object.freeze({
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8555
|
+
__proto__: null,
|
|
8556
|
+
BaseWrapper: BaseWrapper,
|
|
8557
|
+
DOMWrapper: DOMWrapper,
|
|
8558
|
+
RouterLinkStub: RouterLinkStub,
|
|
8559
|
+
VueWrapper: VueWrapper,
|
|
8560
|
+
config: config,
|
|
8561
|
+
createWrapperError: createWrapperError,
|
|
8562
|
+
disableAutoUnmount: disableAutoUnmount,
|
|
8563
|
+
enableAutoUnmount: enableAutoUnmount,
|
|
8564
|
+
flushPromises: flushPromises,
|
|
8565
|
+
mount: mount$1,
|
|
8566
|
+
renderToString: renderToString,
|
|
8567
|
+
shallowMount: shallowMount
|
|
8568
8568
|
});
|
|
8569
8569
|
|
|
8570
8570
|
const {
|
|
8571
8571
|
// We do not expose the `mount` from VueTestUtils, instead, we wrap it and expose a
|
|
8572
8572
|
// Cypress-compatible `mount` API.
|
|
8573
|
-
mount: VTUmount,
|
|
8574
|
-
|
|
8575
|
-
// It might be useful for people who like to migrate some Test Utils tests to Cypress,
|
|
8576
|
-
// so if we decide it is useful to expose, just remove the next line, and it will be
|
|
8577
|
-
// available on the `VueTestUtils` import.
|
|
8578
|
-
shallowMount } = _VueTestUtils, VueTestUtils = __rest(_VueTestUtils, ["mount", "shallowMount"]);
|
|
8573
|
+
mount: VTUmount} = _VueTestUtils, vueTestUtils = __rest(_VueTestUtils, ["mount", "shallowMount"]);
|
|
8574
|
+
const VueTestUtils = vueTestUtils;
|
|
8579
8575
|
const DEFAULT_COMP_NAME = 'unknown';
|
|
8580
8576
|
const VUE_ROOT = '__cy_vue_root';
|
|
8581
8577
|
const cleanup = () => {
|