feat: Add Vue testing best practices and Playwright setup

This commit is contained in:
skytek_xinliang
2026-03-30 17:05:49 +08:00
parent 81b36c60f2
commit 52eb09eccf
74 changed files with 9181 additions and 0 deletions
+32
View File
@@ -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