forked from cypress-io/cypress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathretries_spec.ts
38 lines (31 loc) · 889 Bytes
/
retries_spec.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
32
33
34
35
36
37
38
import systemTests from '../lib/system-tests'
const it = systemTests.it
describe('retries', () => {
systemTests.setup()
it('supports retries', {
browser: '!chrome',
project: 'retries-2',
spec: 'fail-twice.cy.js',
snapshot: true,
})
// TODO: merge in above once --window-size is respected in headless=new chrome browsers
// see https://bugs.chromium.org/p/chromium/issues/detail?id=1416398
it('supports retries (chrome)', {
browser: 'chrome',
project: 'retries-2',
spec: 'fail-twice.cy.js',
snapshot: true,
})
it('completes a run of many retries in a reasonable time', {
spec: 'hanging_retries.cy.js',
expectedExitCode: 10,
})
it('prints current retries', {
spec: 'current_retries.cy.js',
})
it('warns about retries plugin', {
project: 'plugin-retries',
spec: 'main.spec.cy.js',
snapshot: true,
})
})