Files
cypress/system-tests/test/block_hosts_spec.js
T
Bill Glesias 9580dc2e35 breaking: default video configuration option to false (#27008)
* 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>
2023-06-20 13:21:39 -04:00

41 lines
752 B
JavaScript

const systemTests = require('../lib/system-tests').default
const onServer = function (app) {
app.get('/', (req, res) => {
return res.send('<html>hi there</html>')
})
app.get('/req', (req, res) => {
return res.sendStatus(200)
})
return app.get('/status', (req, res) => {
return res.sendStatus(503)
})
}
describe('e2e blockHosts', () => {
systemTests.setup({
servers: [{
port: 3131,
onServer,
}, {
port: 3232,
onServer,
}],
settings: {
blockHosts: 'localhost:3131',
e2e: {
baseUrl: 'http://localhost:3232',
},
},
})
it('passes', function () {
return systemTests.exec(this, {
spec: 'block_hosts.cy.js',
snapshot: true,
})
})
})