|
11 | 11 | "invoke:cypress": "quasar ext invoke @quasar/testing-e2e-cypress && yarn format", |
12 | 12 | "invoke:all": "yarn invoke:cypress", |
13 | 13 | "sync:invoke:cypress": "yarn sync:cypress && yarn invoke:cypress", |
| 14 | + "sync:playwright": "yarn --cwd ../packages/e2e-playwright build:local && yarn add -D ../packages/e2e-playwright", |
| 15 | + "invoke:playwright": "quasar ext invoke @quasar/testing-e2e-playwright && yarn format", |
| 16 | + "sync:invoke:playwright": "yarn sync:playwright && yarn invoke:playwright", |
14 | 17 | "sync:invoke:all": "yarn sync:invoke:cypress", |
15 | 18 | "test:cypress": "yarn test:e2e:ci && yarn test:component:ci", |
16 | 19 | "test:all": "yarn test:cypress", |
17 | 20 | "sync:invoke:test:cypress": "yarn sync:invoke:cypress && yarn test:cypress", |
18 | 21 | "sync:invoke:test:all": "yarn sync:invoke:test:cypress", |
19 | 22 | "lint": "eslint --ext .js,.ts,.vue ./", |
20 | 23 | "format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore", |
21 | | - "test": "echo \"See package.json => scripts for available tests.\" && exit 0", |
22 | | - "test:e2e": "cross-env NODE_ENV=test start-test \"quasar dev\" http-get://127.0.0.1:8080 \"cypress open --e2e\"", |
23 | | - "test:e2e:ci": "cross-env NODE_ENV=test start-test \"quasar dev\" http-get://127.0.0.1:8080 \"cypress run --e2e\"", |
24 | | - "test:component": "cross-env NODE_ENV=test cypress open --component", |
25 | | - "test:component:ci": "cross-env NODE_ENV=test cypress run --component" |
| 24 | + "test": "yarn test:clear && yarn test:component:ci && yarn test:e2e:ci && yarn coverage-report", |
| 25 | + "test:e2e": "cross-env NODE_ENV=test VITE_COVERAGE=true playwright test --ui", |
| 26 | + "test:e2e:ci": "cross-env NODE_ENV=test VITE_COVERAGE=true playwright test", |
| 27 | + "test:component": "cross-env NODE_ENV=test VITE_COVERAGE=true playwright test -c playwright-ct.config.ts --ui", |
| 28 | + "test:component:ci": "cross-env NODE_ENV=test VITE_COVERAGE=true playwright test -c playwright-ct.config.ts", |
| 29 | + "test:clear": "rimraf .nyc_output coverage", |
| 30 | + "test:report": "playwright show-report", |
| 31 | + "coverage-report": "nyc report --reporter=html --reporter=text" |
26 | 32 | }, |
27 | 33 | "dependencies": { |
28 | 34 | "@quasar/extras": "^1.16.6", |
|
40 | 46 | "@intlify/vite-plugin-vue-i18n": "^3.3.1", |
41 | 47 | "@quasar/app-vite": "^1.7.1", |
42 | 48 | "@quasar/quasar-app-extension-testing-e2e-cypress": "../packages/e2e-cypress", |
| 49 | + "@quasar/quasar-app-extension-testing-e2e-playwright": "../packages/e2e-playwright", |
43 | 50 | "@types/node": "^18.17.15", |
44 | 51 | "@typescript-eslint/eslint-plugin": "^5.54.0", |
45 | 52 | "@typescript-eslint/parser": "^5.54.0", |
|
51 | 58 | "eslint-plugin-cypress": "^3.6.0", |
52 | 59 | "eslint-plugin-vue": "^9.17.0", |
53 | 60 | "prettier": "^3.0.3", |
54 | | - "typescript": "^4.9.5" |
| 61 | + "typescript": "^4.9.5", |
| 62 | + "@playwright/test": "^1.49.1", |
| 63 | + "eslint-plugin-playwright": "^2.1.0", |
| 64 | + "@playwright/experimental-ct-vue": "^1.50.0" |
55 | 65 | }, |
56 | 66 | "resolutionsComments": { |
57 | 67 | "vite": "See workaround https://github.com/quasarframework/quasar/issues/14077#issuecomment-1353213893, since Quasar Vite v1 only supports up to Vite 3", |
|
0 commit comments