-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
48 lines (48 loc) · 2.22 KB
/
package.json
File metadata and controls
48 lines (48 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"name": "tcoe-playwright-example",
"version": "1.0.0",
"engines": {
"node": ">=20.11.1"
},
"type": "module",
"devDependencies": {
"@axe-core/playwright": "^4.10.0",
"@eslint/js": "^9.11.1",
"@hmcts/playwright-common": "^1.0.33",
"@playwright/test": "^1.48.2",
"@types/node": "^22.15.34",
"@typescript-eslint/eslint-plugin": "^8.8.0",
"dotenv": "^17.0.0",
"eslint": "^9.11.1",
"eslint-plugin-playwright": "^2.0.0",
"get-port": "^7.1.0",
"globals": "^16.0.0",
"lighthouse": "^12.2.1",
"playwright": "^1.48.2",
"playwright-core": "^1.48.2",
"playwright-lighthouse": "^4.0.0",
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0"
},
"scripts": {
"lint": "yarn tsc -p tsconfig.json && yarn eslint .",
"setup": "yarn playwright install --with-deps",
"setup:edge": "PLAYWRIGHT_BROWSERS_PATH=0 yarn playwright install msedge --with-deps",
"load-secrets": "yarn node scripts/get-secrets.js",
"test:chrome": "yarn playwright test tests/ --project=chrome --grep-invert='(@a11y)|(@performance)|(@visual)'",
"test:firefox": "yarn playwright test tests/ --project=firefox --grep-invert='(@a11y)|(@performance)|(@visual)'",
"test:webkit": "yarn playwright test tests/ --project=webkit --grep-invert='(@a11y)|(@performance)|(@visual)'",
"test:edge": "yarn playwright test tests/ --project=edge --grep-invert='(@a11y)|(@performance)|(@visual)'",
"test:tabletchrome": "yarn playwright test tests/ --project=tabletchrome --grep-invert='(@a11y)|(@performance)|(@visual)'",
"test:tabletwebkit": "yarn playwright test tests/ --project=tabletwebkit --grep-invert='(@a11y)|(@performance)|(@visual)'",
"test:a11y": "yarn playwright test tests/ --grep @a11y --project=chrome",
"build-container": "docker build -t playwright-container .",
"start-container": "docker run --rm -it --network host --ipc=host -v \"$(pwd)\":/playwright -w /playwright playwright-container /bin/bash",
"test:visual": "yarn playwright test tests/ --grep @visual --project=chromium",
"test:update-snapshots": "yarn playwright test tests/ --grep @visual --project=chromium --update-snapshots"
},
"packageManager": "yarn@4.9.2",
"dependencies": {
"uuid": "^11.1.0"
}
}