mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-24 07:59:12 -05:00
29 lines
648 B
JavaScript
29 lines
648 B
JavaScript
const e2e = require('../support/helpers/e2e').default
|
|
|
|
const onServer = function (app) {
|
|
app.get('/first', (req, res) => {
|
|
return res.send('<html><h1>first</h1><a href=\'/second\'>second</a></html>')
|
|
})
|
|
|
|
return app.get('/second', (req, res) => {
|
|
return res.send('<html><h1>second</h1></html>')
|
|
})
|
|
}
|
|
|
|
describe('e2e go', () => {
|
|
e2e.setup({
|
|
servers: {
|
|
port: 1818,
|
|
onServer,
|
|
},
|
|
})
|
|
|
|
// this tests that history changes work as intended
|
|
// there have been regressions in electron which would
|
|
// otherwise cause these tests to fail
|
|
e2e.it('passes', {
|
|
spec: 'go_spec.coffee',
|
|
snapshot: true,
|
|
})
|
|
})
|