mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-03 21:40:28 -05:00
9ea0e9c98b
* 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
39 lines
889 B
TypeScript
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,
|
|
})
|
|
})
|