Files
cypress/system-tests/test/base_url_spec.js
T
Alejandro Estrada 5d52758d82 feat: validate specPattern root level (#19980)
* feat: validate specPattern root level

* Fix/add tests

* Fix test

* Update specExcludePattern

* Fix tests

* Fix/add tests

* Fix/add tests

* Fix tests

* Rename specExcludePattern to excludeSpecPattern

* Fix tests
2022-02-04 10:48:10 -05:00

44 lines
797 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: {
e2e: {
baseUrl: 'https://httpbin.org',
},
},
})
systemTests.it('passes', {
spec: 'base_url.cy.js',
snapshot: true,
})
})
context('http', () => {
systemTests.setup({
servers: {
port: 9999,
onServer,
},
settings: {
e2e: {
baseUrl: 'http://localhost:9999/app',
},
},
})
systemTests.it('passes', {
spec: 'base_url.cy.js',
snapshot: true,
})
})
})