feat: Add Vue testing best practices and Playwright setup
This commit is contained in:
@@ -81,3 +81,35 @@ This project uses Vuetify - an MIT licensed Open Source project. We are glad to
|
||||
- Request enterprise support: https://support.vuetifyjs.com/
|
||||
- Sponsor on GitHub: https://github.com/sponsors/vuetifyjs
|
||||
- Support on Open Collective: https://opencollective.com/vuetify
|
||||
|
||||
## playwright
|
||||
|
||||
```bash
|
||||
pnpm exec playwright test
|
||||
# Runs the end-to-end tests.
|
||||
|
||||
pnpm exec playwright test --ui
|
||||
# Starts the interactive UI mode.
|
||||
|
||||
pnpm exec playwright test --project=chromium
|
||||
# Runs the tests only on Desktop Chrome.
|
||||
|
||||
pnpm exec playwright test example
|
||||
# Runs the tests in a specific file.
|
||||
|
||||
pnpm exec playwright test --debug
|
||||
# Runs the tests in debug mode.
|
||||
|
||||
pnpm exec playwright codegen
|
||||
# Auto generate tests with Codegen.
|
||||
```
|
||||
|
||||
We suggest that you begin by typing:
|
||||
|
||||
```bash
|
||||
pnpm exec playwright test
|
||||
```
|
||||
|
||||
And check out the following files:
|
||||
- ./tests/e2e/example.spec.ts - Example end-to-end test
|
||||
- ./playwright.config.ts - Playwright Test configuration
|
||||
|
||||
Reference in New Issue
Block a user