mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-20 14:10:57 -06:00
Co-authored-by: Brian Mann <brian.mann86@gmail.com> Co-authored-by: Zach Bloomquist <git@chary.us> Co-authored-by: Zach Bloomquist <github@chary.us>
40 lines
745 B
JavaScript
40 lines
745 B
JavaScript
const systemTests = require('../lib/system-tests').default
|
|
|
|
const onServer = (app) => {
|
|
return app.get('/app/html', (req, res) => {
|
|
return res.send('<html>Herman Melville</html>')
|
|
})
|
|
}
|
|
|
|
describe('e2e baseUrl', () => {
|
|
context('https', () => {
|
|
systemTests.setup({
|
|
settings: {
|
|
baseUrl: 'https://httpbin.org',
|
|
},
|
|
})
|
|
|
|
systemTests.it('passes', {
|
|
spec: 'base_url_spec.js',
|
|
snapshot: true,
|
|
})
|
|
})
|
|
|
|
context('http', () => {
|
|
systemTests.setup({
|
|
servers: {
|
|
port: 9999,
|
|
onServer,
|
|
},
|
|
settings: {
|
|
baseUrl: 'http://localhost:9999/app',
|
|
},
|
|
})
|
|
|
|
systemTests.it('passes', {
|
|
spec: 'base_url_spec.js',
|
|
snapshot: true,
|
|
})
|
|
})
|
|
})
|