@revoloo/cypress6
Version:
Cypress.io end to end testing tool
24 lines (21 loc) • 655 B
text/typescript
import path from 'path'
import e2e from '../support/helpers/e2e'
describe('e2e issue 7217', () => {
e2e.setup()
// this test ensures that the right error is reported if the
// browser can't connect
// https://github.com/cypress-io/cypress/issues/7217
e2e.it('shows correct error if browser does not connect', {
expectedExitCode: 1,
spec: 'simple_passing_spec.js',
processEnv: {
CYPRESS_INTERNAL_RUNNER_PATH: path.resolve(__dirname, '../support/fixtures/no-connect.html'),
CYPRESS_INTERNAL_BROWSER_CONNECT_TIMEOUT: 10,
},
browser: 'electron',
snapshot: true,
config: {
video: false,
},
})
})