mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-13 18:50:18 -06:00
* chore: update darwin v8 snapshot * BREAKING CHANGE: set video to false by default (system tests need updating). * Update cli/CHANGELOG.md Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com> * chore: update type comments * chore: update protocol snapshot * run ci * run ci * set video to true for chrome browser crash test * chore: put in workaround for failing system test spec to be fixed in 27062 * chore: allow retries on actionability tests to be at least one retry as the CI tests run faster without video on * chore: fix flaky navigation test where done is called multiple times almsot always, but sometimes throws an error --------- Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import systemTests from '../lib/system-tests'
|
|
|
|
describe('e2e plugin run events', () => {
|
|
systemTests.setup()
|
|
|
|
systemTests.it('sends events', {
|
|
browser: 'electron',
|
|
project: 'plugin-run-events',
|
|
snapshot: true,
|
|
})
|
|
|
|
systemTests.it('handles async before:spec', {
|
|
browser: 'electron',
|
|
project: 'plugin-run-events',
|
|
snapshot: true,
|
|
configFile: 'cypress.config.beforeSpec.async.js',
|
|
})
|
|
|
|
systemTests.it('handles video being deleted in after:spec', {
|
|
browser: 'electron',
|
|
project: 'plugin-run-events',
|
|
spec: '*1.cy.js',
|
|
configFile: 'cypress.config.afterSpec.deleteVideo.js',
|
|
snapshot: true,
|
|
})
|
|
|
|
systemTests.it('fails run if event handler throws', {
|
|
browser: 'electron',
|
|
project: 'plugin-run-events',
|
|
snapshot: true,
|
|
expectedExitCode: 1,
|
|
configFile: 'cypress.config.runEvent.throws.js',
|
|
onStdout: (stdout) => {
|
|
// TODO: Figure out how to fix the race condition on thrown exceptions in before:spec that causes additional electron exceptions to fire: https://github.com/cypress-io/cypress/issues/24102
|
|
return stdout.trimRight()
|
|
},
|
|
})
|
|
})
|