mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-14 11:10:22 -06:00
34 lines
696 B
TypeScript
34 lines
696 B
TypeScript
import systemTests from '../lib/system-tests'
|
|
|
|
describe('e2e plugin run events', () => {
|
|
systemTests.setup()
|
|
|
|
systemTests.it('sends events', {
|
|
browser: 'electron',
|
|
project: 'plugin-run-events',
|
|
spec: '*',
|
|
snapshot: true,
|
|
config: {
|
|
video: false,
|
|
},
|
|
})
|
|
|
|
systemTests.it('handles video being deleted in after:spec', {
|
|
browser: 'electron',
|
|
project: 'plugin-after-spec-deletes-video',
|
|
spec: '*',
|
|
snapshot: true,
|
|
})
|
|
|
|
systemTests.it('fails run if event handler throws', {
|
|
browser: 'electron',
|
|
project: 'plugin-run-event-throws',
|
|
spec: '*',
|
|
snapshot: true,
|
|
expectedExitCode: 1,
|
|
config: {
|
|
video: false,
|
|
},
|
|
})
|
|
})
|