Skip to content

Commit

Permalink
feat(plugin)!: update cypress plugin to reflect cross-browser capabil…
Browse files Browse the repository at this point in the history
…ities

chore(plugin): add link to cypress cross-browser guide

chore(dep): upgrade to cypress v4.0.0

chore(dep): upgrade to Cypress 4.0.1

chore(dep): upgrade to cypress v5.0.0
  • Loading branch information
amirrustam authored and sodatea committed Sep 28, 2020
1 parent 36e500d commit 3717f7c
Show file tree
Hide file tree
Showing 4 changed files with 278 additions and 299 deletions.
6 changes: 4 additions & 2 deletions packages/@vue/cli-plugin-e2e-cypress/README.md
Expand Up @@ -4,15 +4,17 @@
This adds E2E testing support using [Cypress](https://www.cypress.io/).

Cypress offers a rich interactive interface for running E2E tests, but currently only supports running the tests in Chromium. If you have a hard requirement on E2E testing in multiple browsers, consider using the Selenium-based [@vue/cli-plugin-e2e-nightwatch](https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-e2e-nightwatch).
Cypress offers a rich interactive interface for running E2E tests in Firefox and Chromium based browsers (Chrome, MS Edge, Brave, Electron). To learn more about cross browser testing, visit the [Cypress Cross Browser Testing Guide](https://on.cypress.io/cross-browser-testing).

> **Note:** If you have a hard requirement on E2E testing in IE or Safari, consider using the Selenium-based [@vue/cli-plugin-e2e-nightwatch](https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-e2e-nightwatch).
## Injected Commands

- **`vue-cli-service test:e2e`**

Run e2e tests with `cypress run`.

By default it launches Cypress in interactive mode with a GUI. If you want to run the tests in headless mode (e.g. for CI), you can do so with the `--headless` option.
By default it launches Cypress in interactive mode with a GUI (via `cypress open`). If you want to run the tests in headless mode (e.g. for CI), you can do so with the `--headless` option.

The command automatically starts a server in production mode to run the e2e tests against. If you want to run the tests multiple times without having to restart the server every time, you can start the server with `vue-cli-service serve --mode production` in one terminal, and then run e2e tests against that server using the `--url` option.

Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli-plugin-e2e-cypress/package.json
Expand Up @@ -24,7 +24,7 @@
},
"dependencies": {
"@vue/cli-shared-utils": "^4.5.5",
"cypress": "^3.8.3",
"cypress": "^4.0.1",
"eslint-plugin-cypress": "^2.10.3"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli/lib/promptModules/e2e.js
Expand Up @@ -17,7 +17,7 @@ module.exports = cli => {
message: 'Pick an E2E testing solution:',
choices: [
{
name: 'Cypress (Chrome only)',
name: 'Cypress (Test in Chrome, Firefox, MS Edge, and Electron)',
value: 'cypress',
short: 'Cypress'
},
Expand Down

0 comments on commit 3717f7c

Please sign in to comment.