Skip to content

Commit

Permalink
feat(e2e-cypress): upgrade cypress to 3.0
Browse files Browse the repository at this point in the history
close #1477

BREAKING CHANGE: Cypress has been upgraded to 3.0. See changelog at
https://docs.cypress.io/guides/references/changelog.html
  • Loading branch information
yyx990803 committed Jun 5, 2018
1 parent 2cbe373 commit a81f7ad
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test('should work', async () => {
})

const config = JSON.parse(await project.read('cypress.json'))
config.videoRecording = false
config.video = false
await project.write('cypress.json', JSON.stringify(config))

await project.run(`vue-cli-service test:e2e --headless`)
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli-plugin-e2e-cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@vue/cli-shared-utils": "^3.0.0-beta.15",
"cypress": "^2.1.0",
"cypress": "^3.0.0",
"eslint-plugin-cypress": "^2.0.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ test('cypress', async () => {
'@vue/cli-plugin-e2e-cypress': {}
}
})
const config = JSON.parse(await project.read('cypress.json'))
config.video = false
await project.write('cypress.json', JSON.stringify(config))
await project.run(`vue-cli-service test:e2e --headless`)
})

Expand Down
72 changes: 37 additions & 35 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -889,10 +889,11 @@
date-fns "^1.27.2"
figures "^1.7.0"

"@cypress/xvfb@1.1.3":
version "1.1.3"
resolved "https://registry.yarnpkg.com/@cypress/xvfb/-/xvfb-1.1.3.tgz#6294a7d1feb751f12302248f2089fc534c4acb7f"
"@cypress/xvfb@1.2.3":
version "1.2.3"
resolved "https://registry.yarnpkg.com/@cypress/xvfb/-/xvfb-1.2.3.tgz#6319afdcdcff7d1505daeeaa84484d0596189860"
dependencies:
debug "^3.1.0"
lodash.once "^4.1.1"

"@mrmlnc/readdir-enhanced@^2.2.1":
Expand Down Expand Up @@ -1470,7 +1471,7 @@ ansi-styles@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"

ansi-styles@^3.1.0, ansi-styles@^3.2.0, ansi-styles@^3.2.1:
ansi-styles@^3.2.0, ansi-styles@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"
dependencies:
Expand Down Expand Up @@ -2461,6 +2462,12 @@ cache-loader@^1.2.2:
neo-async "^2.5.0"
schema-utils "^0.4.2"

cachedir@1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/cachedir/-/cachedir-1.2.0.tgz#e9a0a25bb21a2b7a0f766f07c41eb7a311919b97"
dependencies:
os-homedir "^1.0.1"

call-me-maybe@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.1.tgz#26d208ea89e37b5cbde60250a15f031c16a4d66b"
Expand Down Expand Up @@ -2582,13 +2589,13 @@ chai@^4.1.2:
pathval "^1.0.0"
type-detect "^4.0.0"

chalk@2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.1.0.tgz#ac5becf14fa21b99c6c92ca7a7d7cfd5b17e743e"
chalk@2.4.1, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.4.1:
version "2.4.1"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
dependencies:
ansi-styles "^3.1.0"
ansi-styles "^3.2.1"
escape-string-regexp "^1.0.5"
supports-color "^4.0.0"
supports-color "^5.3.0"

chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3:
version "1.1.3"
Expand All @@ -2600,14 +2607,6 @@ chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3:
strip-ansi "^3.0.0"
supports-color "^2.0.0"

chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.4.1:
version "2.4.1"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
dependencies:
ansi-styles "^3.2.1"
escape-string-regexp "^1.0.5"
supports-color "^5.3.0"

chardet@^0.4.0:
version "0.4.2"
resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2"
Expand Down Expand Up @@ -3527,12 +3526,12 @@ cyclist@~0.2.2:
version "0.2.2"
resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-0.2.2.tgz#1b33792e11e914a2fd6d6ed6447464444e5fa640"

cypress@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/cypress/-/cypress-2.1.0.tgz#a8bd7d9b89c38a1e380db83b57d9bba0dbb95ba4"
cypress@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/cypress/-/cypress-3.0.1.tgz#6a8938ce8a551e4ae1bd5fb2ceab038d4ad39c4d"
dependencies:
"@cypress/listr-verbose-renderer" "0.4.1"
"@cypress/xvfb" "1.1.3"
"@cypress/xvfb" "1.2.3"
"@types/blob-util" "1.3.3"
"@types/bluebird" "3.5.18"
"@types/chai" "4.0.8"
Expand All @@ -3544,11 +3543,13 @@ cypress@^2.1.0:
"@types/sinon" "4.0.0"
"@types/sinon-chai" "2.7.29"
bluebird "3.5.0"
chalk "2.1.0"
cachedir "1.2.0"
chalk "2.4.1"
check-more-types "2.24.0"
commander "2.11.0"
common-tags "1.4.0"
debug "3.1.0"
executable "4.1.1"
extract-zip "1.6.6"
fs-extra "4.0.1"
getos "2.8.4"
Expand All @@ -3558,6 +3559,7 @@ cypress@^2.1.0:
lazy-ass "1.6.0"
listr "0.12.0"
lodash "4.17.4"
log-symbols "2.2.0"
minimist "1.2.0"
progress "1.1.8"
ramda "0.24.1"
Expand Down Expand Up @@ -4550,6 +4552,12 @@ execa@^0.8.0:
signal-exit "^3.0.0"
strip-eof "^1.0.0"

executable@4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/executable/-/executable-4.1.1.tgz#41532bff361d3e57af4d763b70582db18f5d133c"
dependencies:
pify "^2.2.0"

exit-hook@^1.0.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8"
Expand Down Expand Up @@ -7689,18 +7697,18 @@ lodash@4.17.4:
version "4.17.4"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"

log-symbols@2.2.0, log-symbols@^2.0.0, log-symbols@^2.1.0, log-symbols@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a"
dependencies:
chalk "^2.0.1"

log-symbols@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
dependencies:
chalk "^1.0.0"

log-symbols@^2.0.0, log-symbols@^2.1.0, log-symbols@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a"
dependencies:
chalk "^2.0.1"

log-update@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/log-update/-/log-update-1.0.2.tgz#19929f64c4093d2d2e7075a1dad8af59c296b8d1"
Expand Down Expand Up @@ -8959,7 +8967,7 @@ performance-now@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"

pify@^2.0.0, pify@^2.3.0:
pify@^2.0.0, pify@^2.2.0, pify@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"

Expand Down Expand Up @@ -10821,12 +10829,6 @@ supports-color@^3.1.2, supports-color@^3.2.3:
dependencies:
has-flag "^1.0.0"

supports-color@^4.0.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b"
dependencies:
has-flag "^2.0.0"

svgo@^0.7.0:
version "0.7.2"
resolved "https://registry.yarnpkg.com/svgo/-/svgo-0.7.2.tgz#9f5772413952135c6fefbf40afe6a4faa88b4bb5"
Expand Down

0 comments on commit a81f7ad

Please sign in to comment.