mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-22 07:00:22 -05:00
5d52758d82
* 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
44 lines
797 B
JavaScript
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,
|
|
})
|
|
})
|
|
})
|