Files
cypress/system-tests/test/retries_spec.ts
T
Jennifer Shehane 9ea0e9c98b chore: Move retry tests that are intended to retry to system tests to reduce flake (#28881)
* Move currentRetries tests to a system test to reduce flake

* empty commit

* remove typo on test title

* Migrate origin retries test, which purposefully retries, into a system test

* Snapshot updates around the 'errors errors' typo

* Fix port issue

* Update origin test to reuse existing html files in directory
2024-02-08 14:40:03 -05:00

39 lines
889 B
TypeScript

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,
})
})