forked from cypress-io/cypress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
31 lines (28 loc) · 895 Bytes
/
index.d.ts
1
2
3
4
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
/// <reference types="cypress" />
declare namespace Cypress {
interface SuiteConfigOverrides {
/**
* List of tags for this suite
* @example a single tag
* describe('block with config tag', { tags: '@smoke' }, () => {})
* @example multiple tags
* describe('block with config tag', { tags: ['@smoke', '@slow'] }, () => {})
*/
tags?: string | string[]
}
// specify additional properties in the TestConfig object
// in our case we will add "tags" property
interface TestConfigOverrides {
/**
* List of tags for this test
* @example a single tag
* it('logs in', { tags: '@smoke' }, () => { ... })
* @example multiple tags
* it('works', { tags: ['@smoke', '@slow'] }, () => { ... })
*/
tags?: string | string[]
}
interface Cypress {
grep?: (grep?: string, tags?: string, burn?: string) => void
}
}