cypress 8.3.1 → 8.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/types/cypress.d.ts +77 -10
package/package.json
CHANGED
package/types/cypress.d.ts
CHANGED
@@ -22,6 +22,19 @@ declare namespace Cypress {
|
|
22
22
|
password: string
|
23
23
|
}
|
24
24
|
|
25
|
+
interface RemoteState {
|
26
|
+
auth?: {
|
27
|
+
username: string
|
28
|
+
password: string
|
29
|
+
}
|
30
|
+
domainName: string
|
31
|
+
strategy: 'file' | 'http'
|
32
|
+
origin: string
|
33
|
+
fileServer: string
|
34
|
+
props: Record<string, any>
|
35
|
+
visiting: string
|
36
|
+
}
|
37
|
+
|
25
38
|
interface Backend {
|
26
39
|
/**
|
27
40
|
* Firefox only: Force Cypress to run garbage collection routines.
|
@@ -2060,7 +2073,7 @@ declare namespace Cypress {
|
|
2060
2073
|
* @alias cy.location('href')
|
2061
2074
|
* @see https://on.cypress.io/url
|
2062
2075
|
*/
|
2063
|
-
url(options?: Partial<
|
2076
|
+
url(options?: Partial<UrlOptions>): Chainable<string>
|
2064
2077
|
|
2065
2078
|
/**
|
2066
2079
|
* Control the size and orientation of the screen for your application.
|
@@ -2488,6 +2501,47 @@ declare namespace Cypress {
|
|
2488
2501
|
cmdKey: boolean
|
2489
2502
|
}
|
2490
2503
|
|
2504
|
+
interface PEMCert {
|
2505
|
+
/**
|
2506
|
+
* Path to the certificate file, relative to project root.
|
2507
|
+
*/
|
2508
|
+
cert: string
|
2509
|
+
/**
|
2510
|
+
* Path to the private key file, relative to project root.
|
2511
|
+
*/
|
2512
|
+
key: string
|
2513
|
+
/**
|
2514
|
+
* Path to a text file containing the passphrase, relative to project root.
|
2515
|
+
*/
|
2516
|
+
passphrase?: string
|
2517
|
+
}
|
2518
|
+
|
2519
|
+
interface PFXCert {
|
2520
|
+
/**
|
2521
|
+
* Path to the certificate container, relative to project root.
|
2522
|
+
*/
|
2523
|
+
pfx: string
|
2524
|
+
/**
|
2525
|
+
* Path to a text file containing the passphrase, relative to project root.
|
2526
|
+
*/
|
2527
|
+
passphrase?: string
|
2528
|
+
}
|
2529
|
+
|
2530
|
+
interface ClientCertificate {
|
2531
|
+
/**
|
2532
|
+
* URL to match requests against. Wildcards following [minimatch](https://github.com/isaacs/minimatch) rules are supported.
|
2533
|
+
*/
|
2534
|
+
url: string
|
2535
|
+
/**
|
2536
|
+
* Paths to one or more CA files to validate certs against, relative to project root.
|
2537
|
+
*/
|
2538
|
+
ca?: string[]
|
2539
|
+
/**
|
2540
|
+
* A PEM format certificate/private key pair or PFX certificate container
|
2541
|
+
*/
|
2542
|
+
certs: PEMCert[] | PFXCert[]
|
2543
|
+
}
|
2544
|
+
|
2491
2545
|
interface ResolvedConfigOptions {
|
2492
2546
|
/**
|
2493
2547
|
* Url used as prefix for [cy.visit()](https://on.cypress.io/visit) or [cy.request()](https://on.cypress.io/request) command’s url
|
@@ -2750,6 +2804,11 @@ declare namespace Cypress {
|
|
2750
2804
|
* @default {}
|
2751
2805
|
*/
|
2752
2806
|
e2e: Omit<ResolvedConfigOptions, TestingType>
|
2807
|
+
|
2808
|
+
/**
|
2809
|
+
* An array of objects defining the certificates
|
2810
|
+
*/
|
2811
|
+
clientCertificates: ClientCertificate[]
|
2753
2812
|
}
|
2754
2813
|
|
2755
2814
|
/**
|
@@ -2810,19 +2869,15 @@ declare namespace Cypress {
|
|
2810
2869
|
projectName: string
|
2811
2870
|
projectRoot: string
|
2812
2871
|
proxyUrl: string
|
2872
|
+
remote: RemoteState
|
2813
2873
|
report: boolean
|
2814
2874
|
reporterRoute: string
|
2815
2875
|
reporterUrl: string
|
2816
2876
|
socketId: null | string
|
2817
2877
|
socketIoCookie: string
|
2818
2878
|
socketIoRoute: string
|
2819
|
-
spec:
|
2820
|
-
|
2821
|
-
name: string
|
2822
|
-
relative: string
|
2823
|
-
specFilter: null | string
|
2824
|
-
specType: 'integration' | 'component'
|
2825
|
-
}
|
2879
|
+
spec: Cypress['spec']
|
2880
|
+
specs: Array<Cypress['spec']>
|
2826
2881
|
xhrRoute: string
|
2827
2882
|
xhrUrl: string
|
2828
2883
|
}
|
@@ -3173,6 +3228,18 @@ declare namespace Cypress {
|
|
3173
3228
|
eventConstructor: string
|
3174
3229
|
}
|
3175
3230
|
|
3231
|
+
/**
|
3232
|
+
* Options to change the default behavior of .url()
|
3233
|
+
*/
|
3234
|
+
interface UrlOptions extends Loggable, Timeoutable {
|
3235
|
+
/**
|
3236
|
+
* Whether the url is decoded
|
3237
|
+
*
|
3238
|
+
* @default false
|
3239
|
+
*/
|
3240
|
+
decode: boolean
|
3241
|
+
}
|
3242
|
+
|
3176
3243
|
/** Options to change the default behavior of .writeFile */
|
3177
3244
|
interface WriteFileOptions extends Loggable {
|
3178
3245
|
flag: string
|
@@ -5263,7 +5330,7 @@ declare namespace Cypress {
|
|
5263
5330
|
tag?: string
|
5264
5331
|
}
|
5265
5332
|
|
5266
|
-
interface
|
5333
|
+
interface DevServerConfig {
|
5267
5334
|
specs: Spec[]
|
5268
5335
|
config: ResolvedConfigOptions & RuntimeConfigOptions
|
5269
5336
|
devServerEvents: NodeJS.EventEmitter
|
@@ -5282,7 +5349,7 @@ declare namespace Cypress {
|
|
5282
5349
|
(action: 'before:spec', fn: (spec: Spec) => void | Promise<void>): void
|
5283
5350
|
(action: 'before:browser:launch', fn: (browser: Browser, browserLaunchOptions: BrowserLaunchOptions) => void | BrowserLaunchOptions | Promise<BrowserLaunchOptions>): void
|
5284
5351
|
(action: 'file:preprocessor', fn: (file: FileObject) => string | Promise<string>): void
|
5285
|
-
(action: 'dev-server:start', fn: (file:
|
5352
|
+
(action: 'dev-server:start', fn: (file: DevServerConfig) => Promise<ResolvedDevServerConfig>): void
|
5286
5353
|
(action: 'task', tasks: Tasks): void
|
5287
5354
|
}
|
5288
5355
|
|