forked from hmcts/civil-ccd-definition
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
147 lines (147 loc) · 14.4 KB
/
package.json
File metadata and controls
147 lines (147 loc) · 14.4 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"name": "civil-ccd-definition",
"version": "0.0.1",
"description": "Civil e2e tests",
"scripts": {
"lint": "./bin/run-commands-series.sh -c \"yarn eslint\" \"yarn lint:no-dup-classes\"",
"lint:staged:no-dup-classes": "./bin/run-commands-series.sh -c \"yarn lint-staged\" \"yarn lint:no-dup-classes\"",
"lint:no-dup-classes": "eslint --config ./custom-eslint-configs/no-dup-classes.config.mjs",
"pre-commit": "./.husky/pre-commit",
"lint:fix": "eslint . --fix",
"prettier:fix": "prettier -w 'playwright-e2e/**/*.ts'",
"setup": "echo yarn:setup",
"install-dependencies": "/usr/bin/yarn install --immutable --silent",
"test": "NODE_PATH=. mocha e2e/tests/unit/definitions/**/*.js",
"test:a11y": "echo test:a11y",
"test:coverage": "echo test:coverage",
"highLevelDataSetup": "echo './gradlew highLevelDataSetup --args=$1' > ./temp.sh && sh ./temp.sh",
"test:smoke": "yarn playwright install && MOCHAWESOME_REPORTFILENAME=smoke REPORT_DIR=test-results/smokeTest REPORT_FILE=test-results/smokeTest/results.xml npx codeceptjs run --grep @smoke-tests-unspec --reporter mocha-multi --verbose",
"test:debug": "MOCHAWESOME_REPORTFILENAME=debug npx codeceptjs run-workers --suites 1 --grep @debug --reporter mocha-multi --plugins allure --verbose",
"test:api-prod": "MOCHAWESOME_REPORTFILENAME=api-prod FUNCTIONAL=true npx codeceptjs run-workers --suites 8 --grep @api-prod --reporter mocha-multi --verbose",
"test:api-nonprod": "MOCHAWESOME_REPORTFILENAME=api-nonprod FUNCTIONAL=true npx codeceptjs run-workers --suites 8 --grep '@api-prod|@api-nonprod' --reporter mocha-multi --verbose",
"test:fullfunctional": "./e2e/run-full-functional-tests.sh",
"test:ui-nightly-prod": "MOCHAWESOME_REPORTFILENAME=ui-nightly-prod FUNCTIONAL=true npx codeceptjs run-workers --suites 15 --grep '@ui-nightly-prod|@ui-prod' --reporter mocha-multi --plugins allure --verbose",
"test:api-nightly-prod": "MOCHAWESOME_REPORTFILENAME=api-nightly-prod FUNCTIONAL=true npx codeceptjs run-workers --suites 8 --grep '@api-nightly-prod|@api-prod' --reporter mocha-multi --verbose",
"test:ui-nonprod": "MOCHAWESOME_REPORTFILENAME=ui-nonprod FUNCTIONAL=true npx codeceptjs run-workers --suites 12 --grep '@ui-prod|@ui-nonprod' --reporter mocha-multi --plugins allure --verbose",
"test:ui-prod": "MOCHAWESOME_REPORTFILENAME=ui-prod FUNCTIONAL=true npx codeceptjs run-workers --suites 10 --grep @ui-prod --reporter mocha-multi --plugins allure --verbose",
"test:wa-task": "MOCHAWESOME_REPORTFILENAME=wa-task WA_TESTS=true FUNCTIONAL=true npx codeceptjs run-workers --suites 4 --grep @wa-task --reporter mocha-multi --verbose",
"test:functional": "./e2e/run-functional-tests.sh",
"test:ui-carm": "MOCHAWESOME_REPORTFILENAME=ui-carm FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-carm --reporter mocha-multi --verbose",
"test:ui-cos": "MOCHAWESOME_REPORTFILENAME=ui-cos FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-cos --reporter mocha-multi --verbose",
"test:ui-dj-spec": "MOCHAWESOME_REPORTFILENAME=ui-dj-spec FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-dj-spec --reporter mocha-multi --verbose",
"test:ui-dj-unspec": "MOCHAWESOME_REPORTFILENAME=ui-dj-unspec FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-dj-unspec --reporter mocha-multi --verbose",
"test:ui-hearing-request": "MOCHAWESOME_REPORTFILENAME=ui-hearing-request FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-hearing-request --reporter mocha-multi --verbose",
"test:ui-jo": "MOCHAWESOME_REPORTFILENAME=ui-jo FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-jo --reporter mocha-multi --verbose",
"test:ui-mci": "MOCHAWESOME_REPORTFILENAME=ui-mci FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-mci --reporter mocha-multi --verbose",
"test:ui-minti": "MOCHAWESOME_REPORTFILENAME=ui-minti FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-minti --reporter mocha-multi --verbose",
"test:ui-noc": "MOCHAWESOME_REPORTFILENAME=ui-noc FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-noc --reporter mocha-multi --verbose",
"test:ui-refunds": "MOCHAWESOME_REPORTFILENAME=ui-refunds FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-refunds --reporter mocha-multi --verbose",
"test:ui-rfr": "MOCHAWESOME_REPORTFILENAME=ui-rfr FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-rfr --reporter mocha-multi --verbose",
"test:ui-rpa-handoff-tests": "MOCHAWESOME_REPORTFILENAME=ui-rpa-handoff-tests FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-rpa-handoff-tests --reporter mocha-multi --verbose",
"test:ui-settle-discontinue": "MOCHAWESOME_REPORTFILENAME=ui-settle-discontinue FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-settle-discontinue --reporter mocha-multi --verbose",
"test:ui-spec-1v1": "MOCHAWESOME_REPORTFILENAME=ui-spec-1v1 FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-spec-1v1 --reporter mocha-multi --verbose",
"test:ui-spec-1v2DS": "MOCHAWESOME_REPORTFILENAME=ui-spec-1v2DS FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-spec-1v2DS --reporter mocha-multi --verbose",
"test:ui-spec-fast": "MOCHAWESOME_REPORTFILENAME=ui-spec-fast FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-spec-fast --reporter mocha-multi --verbose",
"test:ui-spec-full-admit": "MOCHAWESOME_REPORTFILENAME=ui-spec-full-admit FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-spec-full-admit --reporter mocha-multi --verbose",
"test:ui-spec-full-defence": "MOCHAWESOME_REPORTFILENAME=ui-spec-full-defence FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-spec-full-defence --reporter mocha-multi --verbose",
"test:ui-spec-part-admit": "MOCHAWESOME_REPORTFILENAME=ui-spec-part-admit FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-spec-part-admit --reporter mocha-multi --verbose",
"test:ui-spec-small": "MOCHAWESOME_REPORTFILENAME=ui-spec-small FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-spec-small --reporter mocha-multi --verbose",
"test:ui-unspec": "MOCHAWESOME_REPORTFILENAME=ui-unspec FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-unspec --reporter mocha-multi --verbose",
"test:ui-unspec-fast": "MOCHAWESOME_REPORTFILENAME=ui-unspec-fast FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-unspec-fast --reporter mocha-multi --verbose",
"test:ui-unspec-small": "MOCHAWESOME_REPORTFILENAME=ui-unspec-small FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-unspec-small --reporter mocha-multi --verbose",
"test:api-cos": "MOCHAWESOME_REPORTFILENAME=api-cos FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-cos --reporter mocha-multi --verbose",
"test:api-cui-carm": "MOCHAWESOME_REPORTFILENAME=api-cui-carm FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-cui-carm --reporter mocha-multi --verbose",
"test:api-dj": "MOCHAWESOME_REPORTFILENAME=api-dj FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-dj --reporter mocha-multi --verbose",
"test:api-hearings": "MOCHAWESOME_REPORTFILENAME=api-hearings FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-hearings --reporter mocha-multi --verbose",
"test:api-jo": "MOCHAWESOME_REPORTFILENAME=api-jo FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-jo --reporter mocha-multi --verbose",
"test:api-multi-intermediate-spec": "MOCHAWESOME_REPORTFILENAME=api-multi-intermediate-spec FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-multi-intermediate-spec --reporter mocha-multi --verbose",
"test:api-multi-intermediate-unspec": "MOCHAWESOME_REPORTFILENAME=api-multi-intermediate-unspec FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-multi-intermediate-unspec --reporter mocha-multi --verbose",
"test:api-noc": "MOCHAWESOME_REPORTFILENAME=api-noc FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-noc --reporter mocha-multi --verbose",
"test:api-sdo": "MOCHAWESOME_REPORTFILENAME=api-sdo FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-sdo --reporter mocha-multi --verbose",
"test:api-spec-counterclaim": "MOCHAWESOME_REPORTFILENAME=api-spec-counterclaim FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-spec-counterclaim --reporter mocha-multi --verbose",
"test:api-spec-cui": "MOCHAWESOME_REPORTFILENAME=api-spec-cui FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-spec-cui --reporter mocha-multi --verbose",
"test:api-spec-fast": "MOCHAWESOME_REPORTFILENAME=api-spec-fast FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-spec-fast --reporter mocha-multi --verbose",
"test:api-spec-full-admit": "MOCHAWESOME_REPORTFILENAME=api-spec-full-admit FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-spec-full-admit --reporter mocha-multi --verbose",
"test:api-spec-full-defence": "MOCHAWESOME_REPORTFILENAME=api-spec-full-defence FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-spec-full-defence --reporter mocha-multi --verbose",
"test:api-spec-part-admit": "MOCHAWESOME_REPORTFILENAME=api-spec-part-admit FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-spec-part-admit --reporter mocha-multi --verbose",
"test:api-spec-small": "MOCHAWESOME_REPORTFILENAME=api-spec-small FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-spec-small --reporter mocha-multi --verbose",
"test:api-toc": "MOCHAWESOME_REPORTFILENAME=api-toc FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-toc --reporter mocha-multi --verbose",
"test:api-unspec-full-defence": "MOCHAWESOME_REPORTFILENAME=api-unspec-full-defence FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-unspec-full-defence --reporter mocha-multi --verbose",
"test:generate:api-docs": "node e2e/e2e-documentation/generator/generate-codeceptjs-api-docs.js",
"test:generate:ui-docs": "node e2e/e2e-documentation/generator/generate-codeceptjs-ui-docs.js",
"test:confluence:api-docs": "node e2e/e2e-documentation/confluence/upload-api-tests.js",
"test:confluence:ui-docs": "node e2e/e2e-documentation/confluence/upload-ui-tests.js",
"test:readme:api-docs": "node e2e/e2e-documentation/readme/updateReadmeApi.js",
"test:readme:ui-docs": "node e2e/e2e-documentation/readme/updateReadmeUi.js",
"generate-dev": "./bin/build-release-ccd-definition.sh local",
"upload-wa": "yarn generate-dev && USER_TOKEN=$(${WA_KUBE_ENV_PATH}/scripts/actions/idam-user-token.sh) && SERVICE_TOKEN=$(${WA_KUBE_ENV_PATH}/scripts/actions/idam-service-token.sh) && curl http://ccd-definition-store-api/import -H \"Authorization: Bearer ${USER_TOKEN}\" -H \"ServiceAuthorization: Bearer ${SERVICE_TOKEN}\" -F file=\"@build/ccd-release-config/civil-ccd-local.xlsx\" && echo ''",
"test:playwright-setup:install": "yarn playwright install",
"test:playwright-setup:data:ci": "npx playwright test --project data-setup --pass-with-no-tests --no-deps",
"test:playwright-setup:users:ci": "npx playwright test --project users-setup --pass-with-no-tests --no-deps",
"test:playwright-setup:users-auth:ci": "npx playwright test --project users-auth-setup --pass-with-no-tests --no-deps",
"test:playwright-e2e-setup:ci": "./bin/run-commands-series.sh -c \"yarn test:playwright-setup:data:ci\" \"yarn test:playwright-setup:users:ci && yarn test:playwright-setup:users-auth:ci\"",
"test:playwright-e2e-nightly:ci": "FUNCTIONAL=true npx playwright test --project e2e-full-functional --no-deps",
"test:playwright-teardown:users-auth:ci": "npx playwright test --project users-auth-teardown --pass-with-no-tests --no-deps",
"test:playwright-teardown:case-role-assignment:ci": "npx playwright test --project case-role-assignment-teardown --pass-with-no-tests --no-deps",
"test:playwright-e2e-teardown:ci": "./bin/run-commands-series.sh -c \"yarn test:playwright-teardown:case-role-assignment:ci\" \"yarn test:playwright-teardown:users-auth:ci\" \"yarn ts-node ./playwright-e2e/global/teardown-ci\"",
"test:playwright-e2e-debug:local": "npx playwright test --project e2e-full-functional --grep @debug",
"test:playwright-e2e:local": "npx playwright test --project e2e-full-functional",
"test:playwright-e2e:open": "npx playwright test --project e2e-full-functional",
"test:playwright-e2e:openJ": "npx playwright test --project e2e-full-functionalJ --ui",
"test:playwright-functional:generate-report": "allure generate playwright-allure-functional-results --clean -o playwright-allure-functional-report",
"test:playwright-functional:open-report": "allure open playwright-allure-functional-report",
"test:playwright-bootstrap:generate-report": "allure generate playwright-allure-bootstrap-results --clean -o playwright-allure-bootstrap-report",
"test:playwright-bootstrap:open-report": "allure open playwright-allure-bootstrap-report",
"prepare": "husky"
},
"license": "MIT",
"devDependencies": {
"@axe-core/playwright": "^4.10.0",
"@eslint/js": "^9.11.0",
"@playwright/test": "^1.47.1",
"@types/node": "^22.5.5",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"allure-codeceptjs": "^3.4.2",
"allure-commandline": "^2.29.0",
"allure-js-commons": "^3.4.2",
"allure-playwright": "2.4.0",
"chai": "^4.3.4",
"codeceptjs": "3.5.11",
"custom-eslint-plugin": "portal:./plugins/custom-eslint-plugins",
"deep-equal-in-any-order": "^1.0.28",
"dotenv": "^16.4.5",
"eslint": "^9.11.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-codeceptjs": "^1.3.0",
"faker": "^5.5.3",
"globals": "^15.9.0",
"html_codesniffer": "^2.5.1",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"lodash": "^4.17.21",
"mocha": "9.2.2",
"mocha-junit-reporter": "^2.0.2",
"mocha-multi": "^1.1.6",
"mochawesome": "^7.0.1",
"node-cache": "^5.1.2",
"node-fetch": "^2.6.9",
"playwright-core": "^1.47.2",
"prettier": "^3.3.3",
"proper-lockfile": "^4.1.2",
"totp-generator": "^1.0.0",
"ts-node": "^10.9.2",
"typescript": "5.1.3",
"typescript-eslint": "8.0.0",
"uuid": "^11.0.3",
"webdriverio": "^6.12.1"
},
"lint-staged": {
"playwright-ui/**/*.{ts,tsx}": "prettier --write",
"**/*.{ts,tsx,js,mjs,cjs}": "eslint"
},
"resolutions": {
"minimatch": "^3.0.5"
},
"packageManager": "yarn@4.10.3"
}