Files
cypress/packages/server/test/e2e/2_go_spec.js
T
Zach Bloomquist 9ea49792d0 cleanup decaf
2020-06-04 17:06:23 -04:00

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,
})
})