1.2.0 • Published 4 years ago
vue-cli-plugin-e2e-playwright v1.2.0
vue-cli-plugin-e2e-playwright
Vue CLI plugin for e2e testing with Mocha and Playwright.
Installing
vue add e2e-playwrightRunning
Run yarn test:e2e or npm run test:e2e to run your end-to-end tests.
Changes to your project
- Adds
vue-cli-service test:2e2topackage.jsonscripts - Sets Mocha as global variable in eslint in the
*.spec.jsfiles insidetests/e2einpackage.json - Adds Chai and Playwright as dev dependencies in
package.json - Creates example e2e test in
tests/e2e/example.spec.js
Features
Options
// options
--timeout test timeout in ms, default 90000
--url url to test, it will not start the dev server
--browser define browser to run tests (chromium, firefox, webkit),
default chromiumCheck more options for Mocha.