-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpackage.json
158 lines (158 loc) · 15.2 KB
/
package.json
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
148
149
150
151
152
153
154
155
156
157
158
{
"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",
"yarn-update": "yarn set version 3.x",
"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:smoke-spec": "MOCHAWESOME_REPORTFILENAME=smoke npx codeceptjs run --grep @smoke-tests-spec --reporter mocha-multi --verbose",
"test:api-unspec": "MOCHAWESOME_REPORTFILENAME=api-unspec npx codeceptjs run-workers --suites 4 --grep @api-unspec --reporter mocha-multi --verbose",
"test:api-unspec-full-defence": "MOCHAWESOME_REPORTFILENAME=api-unspec-full-defence npx codeceptjs run-workers --suites 4 --grep @api-unspec-full-defence --reporter mocha-multi --verbose",
"test:e2e-unspec": "MOCHAWESOME_REPORTFILENAME=e2e-unspec npx codeceptjs run-workers --suites 4 --grep @e2e-unspec --reporter mocha-multi --verbose",
"test:api-sdo": "MOCHAWESOME_REPORTFILENAME=api-sdo npx codeceptjs run-workers --suites 4 --grep @api-sdo --reporter mocha-multi --verbose",
"test:api-r2-sdo": "MOCHAWESOME_REPORTFILENAME=api-r2-sdo npx codeceptjs run-workers --suites 4 --grep @api-r2-sdo --reporter mocha-multi --verbose",
"test:api-settle-discont": "MOCHAWESOME_REPORTFILENAME=api-settle-discont npx codeceptjs run-workers --suites 4 --grep @api-settle-discont --reporter mocha-multi --verbose",
"test:api-toc": "MOCHAWESOME_REPORTFILENAME=api-toc npx codeceptjs run-workers --suites 4 --grep @api-toc --reporter mocha-multi --verbose",
"test:e2e-sdo": "MOCHAWESOME_REPORTFILENAME=e2e-sdo npx codeceptjs run-workers --suites 3 --grep @e2e-sdo --reporter mocha-multi --verbose",
"test:api-dj": "MOCHAWESOME_REPORTFILENAME=api-dj npx codeceptjs run-workers --suites 4 --grep @api-dj --reporter mocha-multi --verbose",
"test:e2e-dj": "MOCHAWESOME_REPORTFILENAME=e2e-dj NODE_TLS_REJECT_UNAUTHORIZED=0 npx codeceptjs run-workers --suites 2 --grep @e2e-1v1-dj --reporter mocha-multi --verbose",
"test:api": "MOCHAWESOME_REPORTFILENAME=api-multiparty npx codeceptjs run --grep @api-multiparty --reporter mocha-multi --verbose",
"test:e2e-wa": "MOCHAWESOME_REPORTFILENAME=api-1v1 npx codeceptjs run --grep @e2e-wa --reporter mocha-multi --verbose",
"test:wa-r4": "MOCHAWESOME_REPORTFILENAME=api-1v1 CCD_UI_TESTS=true npx codeceptjs run-workers --suites 4 --grep @wa-r4 --reporter mocha-multi --verbose",
"test:api-1v1": "MOCHAWESOME_REPORTFILENAME=api-1v1 npx codeceptjs run --grep @api-tests-1v1 --reporter mocha-multi --verbose",
"test:api-1v2SS": "MOCHAWESOME_REPORTFILENAME=api-1v2SS npx codeceptjs run --grep @api-tests-1v2SS --reporter mocha-multi --verbose",
"test:api-1v2DS": "MOCHAWESOME_REPORTFILENAME=api-1v2DS npx codeceptjs run --grep @api-tests-1v2DS --reporter mocha-multi --verbose",
"test:api-2v1": "MOCHAWESOME_REPORTFILENAME=api-2v1 npx codeceptjs run --grep @api-tests-2v1 --reporter mocha-multi --verbose",
"test:e2e": "MOCHAWESOME_REPORTFILENAME=e2e-multiparty npx codeceptjs run --grep @e2e-multiparty --reporter mocha-multi --verbose",
"test:e2e-1v1": "MOCHAWESOME_REPORTFILENAME=e2e-1v1 npx codeceptjs run --grep @e2e-1v1 --reporter mocha-multi --verbose",
"test:e2e-1v2SS": "MOCHAWESOME_REPORTFILENAME=e2e-1v2SS npx codeceptjs run --grep @e2e-1v2SS --reporter mocha-multi --verbose",
"test:e2e-1v2DS": "MOCHAWESOME_REPORTFILENAME=e2e-1v2DS npx codeceptjs run --grep @e2e-1v2DS --reporter mocha-multi --verbose",
"test:e2e-2v1": "MOCHAWESOME_REPORTFILENAME=e2e-2v1 npx codeceptjs run --grep @e2e-2v1 --reporter mocha-multi --verbose",
"test:api-spec": "MOCHAWESOME_REPORTFILENAME=api-spec npx codeceptjs run-workers --suites 4 --grep @api-specified --reporter mocha-multi --verbose",
"test:api-tests": "MOCHAWESOME_REPORTFILENAME=api-tests npx codeceptjs run-workers --suites 4 --grep @api-tests --reporter mocha-multi --verbose",
"test:api-spec-cui": "MOCHAWESOME_REPORTFILENAME=api-spec-cui npx codeceptjs run --grep @api-spec-cui --reporter mocha-multi --verbose",
"test:api-spec-1v2": "MOCHAWESOME_REPORTFILENAME=api-spec npx codeceptjs run --grep @api-spec-1v2 --reporter mocha-multi --verbose",
"test:api-spec-1v1": "MOCHAWESOME_REPORTFILENAME=api-spec npx codeceptjs run --grep @api-spec-1v1 --reporter mocha-multi --verbose",
"test:api-spec-small": "MOCHAWESOME_REPORTFILENAME=api-spec npx codeceptjs run --grep @api-spec-small --reporter mocha-multi --verbose",
"test:api-spec-full-defence": "MOCHAWESOME_REPORTFILENAME=api-spec-full-defence npx codeceptjs run --grep @api-spec-full-defence --reporter mocha-multi --verbose",
"test:api-spec-part-admit": "MOCHAWESOME_REPORTFILENAME=api-spec-part-admit npx codeceptjs run --grep @api-spec-part-admit --reporter mocha-multi --verbose",
"test:api-spec-full-admit": "MOCHAWESOME_REPORTFILENAME=api-spec-full-admit npx codeceptjs run --grep @api-spec-full-admit --reporter mocha-multi --verbose",
"test:api-spec-counterclaim": "MOCHAWESOME_REPORTFILENAME=api-spec-counterclaim npx codeceptjs run --grep @api-spec-counterclaim --reporter mocha-multi --verbose",
"test:e2e-spec": "MOCHAWESOME_REPORTFILENAME=e2e-spec npx codeceptjs run-workers --suites 2 --grep @e2e-spec-1v2DS --reporter mocha-multi --verbose",
"test:e2e-spec-1v2DS": "MOCHAWESOME_REPORTFILENAME=e2e-spec npx codeceptjs run --grep @e2e-spec-1v2DS --reporter mocha-multi --verbose",
"test:functional-unspec": "MOCHAWESOME_REPORTFILENAME=functional-unspec npx codeceptjs run --grep '@e2e-unspec-1v2DS' --reporter mocha-multi --verbose",
"test:e2e-cos": "MOCHAWESOME_REPORTFILENAME=functional-cos npx codeceptjs run-workers --suites 2 --grep @e2e-cos --reporter mocha-multi --verbose",
"test:api-cos": "MOCHAWESOME_REPORTFILENAME=api-cos npx codeceptjs run-workers --suites 4 --grep @api-cos --reporter mocha-multi --verbose",
"test:api-bulk": "MOCHAWESOME_REPORTFILENAME=api-bulk npx codeceptjs run --grep @api-bulk --reporter mocha-multi --verbose",
"test:functional-dj": "MOCHAWESOME_REPORTFILENAME=functional-unspec npx codeceptjs run --grep @e2e-dj --reporter mocha-multi --verbose",
"test:nightly-multiparty": "MOCHAWESOME_REPORTFILENAME=nightly-multiparty npx codeceptjs run --grep '@e2e-nightly' --reporter mocha-multi --verbose",
"test:rpa": "MOCHAWESOME_REPORTFILENAME=rpa npx codeceptjs run --grep @rpa-handoff-tests --reporter mocha-multi --verbose",
"test:api-rpa-spec": "MOCHAWESOME_REPORTFILENAME=rpa-spec npx codeceptjs run --grep @rpa-handoff-tests-spec --reporter mocha-multi --verbose",
"test:crossbrowser-e2e": "MOCHAWESOME_REPORTFILENAME=crossbrowser codeceptjs run-multiple --grep @cross-browser-tests ${BROWSER_GROUP:-'--all'} -c saucelabs.conf.js --reporter mocha-multi",
"test:crossbrowser": "./e2e/run-crossbrowser-tests.sh",
"test:AATFunctional": "./e2e/run-prod-functional-tests.sh",
"test:DemoFunctional": "./e2e/run-features-flag-enabled-full-functional-tests",
"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:fullfunctional": "yarn playwright install && MOCHAWESOME_REPORTFILENAME=functional-unspec npx codeceptjs run-workers --suites 2 --grep '@e2e-nightly-prod' --reporter mocha-multi --verbose",
"test:e2e-nightly-prod": "MOCHAWESOME_REPORTFILENAME=non-prod-e2e-ft npx codeceptjs run-workers --suites 2 --grep '@e2e-nightly-prod' --reporter mocha-multi --verbose",
"test:api-nightly-prod": "MOCHAWESOME_REPORTFILENAME=api-nightly-prod npx codeceptjs run-workers --suites 8 --grep '@api-nightly-prod' --reporter mocha-multi --verbose",
"test:e2e-nightly-nonprod": "MOCHAWESOME_REPORTFILENAME=non-prod-e2e-ft npx codeceptjs run-workers --suites 2 --grep '@e2e-nightly-nonprod' --reporter mocha-multi --verbose",
"test:non-prod-e2e-ft": "MOCHAWESOME_REPORTFILENAME=non-prod-e2e-ft npx codeceptjs run-workers --suites 7 --grep '@master-e2e-ft|@non-prod-e2e-ft' --reporter mocha-multi --verbose",
"test:master-e2e-ft": "MOCHAWESOME_REPORTFILENAME=master-e2e-ft npx codeceptjs run-workers --suites 7 --grep @master-e2e-ft --reporter mocha-multi --verbose",
"test:functional": "./e2e/run-functional-tests.sh",
"test:sdo": "MOCHAWESOME_REPORTFILENAME=functional npx codeceptjs run --grep @sdo --reporter mocha-multi --verbose",
"test:refunds": "MOCHAWESOME_REPORTFILENAME=functional CCD_UI_TESTS=true npx codeceptjs run --grep '@refunds' --reporter mocha-multi --verbose",
"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:api-prod": "MOCHAWESOME_REPORTFILENAME=api-master-prod npx codeceptjs run-workers --suites 8 --grep @api-prod --reporter mocha-multi --verbose",
"test:api-nonprod": "MOCHAWESOME_REPORTFILENAME=api-preview-nonprod npx codeceptjs run-workers --suites 10 --grep @api-nonprod --reporter mocha-multi --verbose",
"test:api-hearings": "MOCHAWESOME_REPORTFILENAME=api-hearings npx codeceptjs run-workers --suites 4 --grep @api-hearings --reporter mocha-multi --verbose",
"test:api-carm": "MOCHAWESOME_REPORTFILENAME=api-carm npx codeceptjs run-workers --suites 4 --grep @cui-carm --reporter mocha-multi --verbose",
"test:api-noc": "MOCHAWESOME_REPORTFILENAME=api-noc npx codeceptjs run-workers --suites 4 --grep @api-noc --reporter mocha-multi --verbose",
"test:api-noc-unspec": "MOCHAWESOME_REPORTFILENAME=api-noc-unspec npx codeceptjs run-workers --suites 4 --grep @api-noc-unspec --reporter mocha-multi --verbose",
"test:api-noc-spec": "MOCHAWESOME_REPORTFILENAME=api-noc-spec npx codeceptjs run-workers --suites 4 --grep @api-noc-spec --reporter mocha-multi --verbose",
"test:e2e-noc": "MOCHAWESOME_REPORTFILENAME=e2e-noc npx codeceptjs run-workers --suites 2 --grep @e2e-noc --reporter mocha-multi --verbose",
"test:api-jo": "MOCHAWESOME_REPORTFILENAME=api-jo npx codeceptjs run-workers --suites 4 --grep @api-jo --reporter mocha-multi --verbose",
"test:api-mediation": "MOCHAWESOME_REPORTFILENAME=api-mediation npx codeceptjs run-workers --suites 4 --grep @api-spec-mediation --reporter mocha-multi --verbose",
"test:api-multi-intermediate-spec": "MOCHAWESOME_REPORTFILENAME=api-multi-intermediate-spec npx codeceptjs run-workers --suites 4 --grep @api-spec-multi-intermediate --reporter mocha-multi --verbose",
"test:api-multi-intermediate-unspec": "MOCHAWESOME_REPORTFILENAME=api-multi-intermediate-unspec npx codeceptjs run-workers --suites 4 --grep @api-unspec-multi-intermediate --reporter mocha-multi --verbose",
"test:e2e-hearing-request": "MOCHAWESOME_REPORTFILENAME=e2e-hearing-request npx codeceptjs run-workers --suites 4 --grep @e2e-hearing-request --reporter mocha-multi --verbose",
"test:AHN": "MOCHAWESOME_REPORTFILENAME=automated-hearing-notice-scheduler npx codeceptjs run --grep '@AHN' --reporter mocha-multi --verbose",
"test:playwright-functional:generate-report": "allure generate playwright-allure-functional-results --clean -o playwright-allure-functional-report",
"test:playwright-bootstrap:generate-report": "allure generate playwright-allure-bootstrap-results --clean -o playwright-allure-bootstrap-report",
"test:playwright-functional:open-report": "allure open playwright-allure-functional-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": "^5.62.0",
"@typescript-eslint/eslint-plugin-tslint": "^5.50.0",
"@typescript-eslint/parser": "^5.50.0",
"allure-commandline": "^2.29.0",
"allure-playwright": "2.4.0",
"chai": "^4.3.4",
"codeceptjs": "^3.5.11",
"custom-eslint-plugin": "file: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": "^1.41.1",
"playwright-core": "^1.47.2",
"prettier": "^3.3.3",
"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-e2e/**/*.{ts,tsx}": "prettier --write",
"**/*.{ts,tsx,js,mjs,cjs}": "eslint"
},
"resolutions": {
"minimatch": "^3.0.5"
},
"packageManager": "[email protected]"
}