Skip to content

Commit 46358eb

Browse files
chrisvfritzyyx990803
authored andcommitted
fix(cypress): upgrade cypress and properly set base url (#879)
1 parent 92ddd09 commit 46358eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: packages/@vue/cli-plugin-e2e-cypress/generator/template/test/e2e/specs/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
describe('My First Test', () => {
44
it('Visits the Kitchen Sink', () => {
5-
cy.visit(Cypress.env('VUE_DEV_SERVER_URL'))
5+
cy.visit('/')
66
cy.contains('h1', 'Welcome to Your Vue.js <%- hasTS ? '+ TypeScript ' : '' %>App')
77
})
88
})

Diff for: packages/@vue/cli-plugin-e2e-cypress/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = (api, options) => {
2424

2525
const cyArgs = [
2626
command, // open or run
27-
'--env', `VUE_DEV_SERVER_URL=${url}`,
27+
'--config', `baseUrl=${url}`,
2828
...rawArgs
2929
]
3030

Diff for: packages/@vue/cli-plugin-e2e-cypress/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"access": "public"
2323
},
2424
"dependencies": {
25-
"cypress": "^1.4.1",
25+
"cypress": "^2.0.3",
2626
"eslint-plugin-cypress": "^2.0.1"
2727
}
2828
}

0 commit comments

Comments
 (0)