Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit 0911f14

Browse files
committed
feat(plugin): update cypress plugin to reflect cross-browser capabilities
1 parent c8cecff commit 0911f14

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/@vue/cli-plugin-e2e-cypress/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44
55
This adds E2E testing support using [Cypress](https://www.cypress.io/).
66

7-
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).
7+
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.
8+
9+
> **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).
810
911
## Injected Commands
1012

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

1315
Run e2e tests with `cypress run`.
1416

15-
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.
17+
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.
1618

1719
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.
1820

packages/@vue/cli/lib/promptModules/e2e.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = cli => {
1717
message: 'Pick a E2E testing solution:',
1818
choices: [
1919
{
20-
name: 'Cypress (Chrome only)',
20+
name: 'Cypress (Test in Chrome, Firefox, MS Edge, and Electron)',
2121
value: 'cypress',
2222
short: 'Cypress'
2323
},

0 commit comments

Comments
 (0)