Skip to content

Commit e07b8eb

Browse files
committed
chore(playwright): sync test project
1 parent ba66b49 commit e07b8eb

14 files changed

Lines changed: 9 additions & 55 deletions

test-project-playwright/.nycrc

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,3 @@
11
{
2-
"extends": "@istanbuljs/nyc-config-typescript",
3-
"all": true,
4-
"include": [
5-
"src/**/*.{js,ts,vue}"
6-
],
7-
"exclude": [
8-
"src/**/*.spec.{js,ts}",
9-
"src/**/*.test.{js,ts}",
10-
"node_modules",
11-
"test/",
12-
"coverage/",
13-
"__tests__"
14-
],
15-
"reporter": [
16-
"text",
17-
"html",
18-
"lcov",
19-
"json"
20-
],
21-
"extension": [
22-
".js",
23-
".ts",
24-
".vue"
25-
],
26-
"report-dir": "coverage",
27-
"temp-dir": ".nyc_output",
28-
"coverage-provider": "istanbul",
29-
"skip-full": false,
30-
"check-coverage": false,
31-
"watermarks": {
32-
"lines": [
33-
0,
34-
0
35-
],
36-
"functions": [
37-
0,
38-
0
39-
],
40-
"branches": [
41-
0,
42-
0
43-
],
44-
"statements": [
45-
0,
46-
0
47-
]
48-
}
2+
"extends": "@quasar/quasar-app-extension-testing-e2e-playwright/nyc-preset"
493
}

test-project-playwright/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
"test:clear": "rimraf .nyc_output coverage",
1919
"dev": "quasar dev",
2020
"build": "quasar build",
21-
"test:e2e": "cross-env NODE_ENV=test playwright test --ui",
22-
"test:e2e:ci": "cross-env NODE_ENV=test playwright test",
23-
"test:component": "cross-env NODE_ENV=test playwright test -c playwright-ct.config.ts --ui",
24-
"test:component:ci": "cross-env NODE_ENV=test playwright test -c playwright-ct.config.ts",
25-
"test:report": "cross-env NODE_ENV=test playwright show-report"
21+
"test:e2e": "cross-env NODE_ENV=test VITE_COVERAGE=true playwright test --ui",
22+
"test:e2e:ci": "cross-env NODE_ENV=test VITE_COVERAGE=true playwright test",
23+
"test:component": "cross-env NODE_ENV=test VITE_COVERAGE=true playwright test -c playwright-ct.config.ts --ui",
24+
"test:component:ci": "cross-env NODE_ENV=test VITE_COVERAGE=true playwright test -c playwright-ct.config.ts",
25+
"test:report": "playwright show-report"
2626
},
2727
"dependencies": {
2828
"@quasar/extras": "^1.16.4",
@@ -59,4 +59,4 @@
5959
"npm": ">= 6.13.4",
6060
"yarn": ">= 1.21.1"
6161
}
62-
}
62+
}

test-project-playwright/playwright-ct.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default defineConfig({
7070
include: ['src/**/*'],
7171
exclude: ['node_modules', 'test/', 'dist/', 'coverage/', '__tests__'],
7272
extension: ['.js', '.ts', '.vue'],
73-
requireEnv: false,
73+
requireEnv: true,
7474
forceBuildInstrument: true,
7575
checkProd: false,
7676
cypress: false,

test-project-playwright/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default defineConfig({
7272

7373
/* Run your local dev server before starting the tests */
7474
webServer: {
75-
command: ' VITE_COVERAGE=true quasar dev -p 8080',
75+
command: 'quasar dev -p 8080',
7676
url: 'http://localhost:8080',
7777
reuseExistingServer: !process.env.CI,
7878
},

test-project-playwright/src/components/__test__/QuasarButton.spec.ts renamed to test-project-playwright/src/components/__tests__/QuasarButton.spec.ts

File renamed without changes.

test-project-playwright/src/components/__test__/QuasarCheckComponents.spec.ts renamed to test-project-playwright/src/components/__tests__/QuasarCheckComponents.spec.ts

File renamed without changes.

test-project-playwright/src/components/__test__/QuasarDark.spec.ts renamed to test-project-playwright/src/components/__tests__/QuasarDark.spec.ts

File renamed without changes.

test-project-playwright/src/components/__test__/QuasarDate.spec.ts renamed to test-project-playwright/src/components/__tests__/QuasarDate.spec.ts

File renamed without changes.

test-project-playwright/src/components/__test__/QuasarDialog.spec.ts renamed to test-project-playwright/src/components/__tests__/QuasarDialog.spec.ts

File renamed without changes.

test-project-playwright/src/components/__test__/QuasarDrawer.spec.ts renamed to test-project-playwright/src/components/__tests__/QuasarDrawer.spec.ts

File renamed without changes.

0 commit comments

Comments
 (0)