mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-30 03:51:21 -05:00
abea165832
* fix: do not include non specs when globbing using --spec in run mode * update pattern * fix test * update cdp spec * wip - updates * update snapshots * update non-proxied spec * update snaps * update snaps * rename specs * update spec * wip - snapshots * snaps * snaps * update spec names * update * update test * snaps * update snap and spec * snaps * correct spec pattern * snaps * revert * update spec and snapshots * fix test * update tests * fix test * update test * update snapshot * update snaps * include coffee in specPattern * update snapshots * update snaps * rename specs * snaps * update test * update snapshot * update * snaps * update snap * update snaps * fix test * unskip test * snaps * add test
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import mockedEnv from 'mocked-env'
|
|
import systemTests from '../lib/system-tests'
|
|
|
|
describe('e2e cdp', function () {
|
|
systemTests.setup()
|
|
let restoreEnv: Function
|
|
|
|
beforeEach(() => {
|
|
restoreEnv = mockedEnv({
|
|
CYPRESS_REMOTE_DEBUGGING_PORT: '7777',
|
|
})
|
|
})
|
|
|
|
afterEach(() => {
|
|
restoreEnv()
|
|
})
|
|
|
|
// NOTE: this test takes almost a minute and is largely redundant with protocol_spec
|
|
systemTests.it.skip('fails when remote debugging port cannot be connected to', {
|
|
project: 'remote-debugging-port-removed',
|
|
spec: 'spec.cy.ts',
|
|
browser: 'chrome',
|
|
expectedExitCode: 1,
|
|
})
|
|
|
|
// https://github.com/cypress-io/cypress/issues/5685
|
|
systemTests.it('handles disconnections as expected', {
|
|
project: 'remote-debugging-disconnect',
|
|
spec: 'spec.cy.ts',
|
|
browser: 'chrome',
|
|
expectedExitCode: 1,
|
|
snapshot: true,
|
|
onStdout: (stdout) => {
|
|
// the location of this warning is non-deterministic
|
|
return stdout.replace('The automation client disconnected. Cannot continue running tests.\n', '')
|
|
},
|
|
})
|
|
})
|