Files
cypress/system-tests/test/plugin_run_events_spec.ts
2021-11-29 15:28:05 +10:00

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