-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpackage.json
More file actions
160 lines (160 loc) · 16.6 KB
/
package.json
File metadata and controls
160 lines (160 loc) · 16.6 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
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"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-case-flags": "MOCHAWESOME_REPORTFILENAME=ui-case-flags FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-case-flags --reporter mocha-multi --verbose",
"test:ui-case-offline": "MOCHAWESOME_REPORTFILENAME=ui-case-offline FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-case-offline --reporter mocha-multi --verbose",
"test:ui-case-progression": "MOCHAWESOME_REPORTFILENAME=ui-case-progression FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-case-progression --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-discontinue-claim": "MOCHAWESOME_REPORTFILENAME=ui-discontinue-claim FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-discontinue-claim --reporter mocha-multi --verbose",
"test:ui-dj": "MOCHAWESOME_REPORTFILENAME=ui-dj FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-dj --reporter mocha-multi --verbose",
"test:ui-flight-delay": "MOCHAWESOME_REPORTFILENAME=ui-flight-delay FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-flight-delay --reporter mocha-multi --verbose",
"test:ui-hearings": "MOCHAWESOME_REPORTFILENAME=ui-hearings FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-hearings --reporter mocha-multi --verbose",
"test:ui-intermediate-track": "MOCHAWESOME_REPORTFILENAME=ui-intermediate-track FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-intermediate-track --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-mediation": "MOCHAWESOME_REPORTFILENAME=ui-mediation FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-mediation --reporter mocha-multi --verbose",
"test:ui-multi-track": "MOCHAWESOME_REPORTFILENAME=ui-multi-track FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-multi-track --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-qm": "MOCHAWESOME_REPORTFILENAME=ui-qm FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-qm --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-settle-claim": "MOCHAWESOME_REPORTFILENAME=ui-settle-claim FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-settle-claim --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-stay-case": "MOCHAWESOME_REPORTFILENAME=ui-stay-case FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-stay-case --reporter mocha-multi --verbose",
"test:ui-unspec-full-defence": "MOCHAWESOME_REPORTFILENAME=ui-unspec-full-defence FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @ui-unspec-full-defence --reporter mocha-multi --verbose",
"test:api-bulk-claim": "MOCHAWESOME_REPORTFILENAME=api-bulk-claim FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-bulk-claim --reporter mocha-multi --verbose",
"test:api-case-flags": "MOCHAWESOME_REPORTFILENAME=api-case-flags FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-case-flags --reporter mocha-multi --verbose",
"test:api-case-offline": "MOCHAWESOME_REPORTFILENAME=api-case-offline FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-case-offline --reporter mocha-multi --verbose",
"test:api-case-progression": "MOCHAWESOME_REPORTFILENAME=api-case-progression FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-case-progression --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-discontinue-claim": "MOCHAWESOME_REPORTFILENAME=api-discontinue-claim FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-discontinue-claim --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-drh": "MOCHAWESOME_REPORTFILENAME=api-drh FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-drh --reporter mocha-multi --verbose",
"test:api-flight-delay": "MOCHAWESOME_REPORTFILENAME=api-flight-delay FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-flight-delay --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-intermediate-track": "MOCHAWESOME_REPORTFILENAME=api-intermediate-track FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-intermediate-track --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-mci": "MOCHAWESOME_REPORTFILENAME=api-mci FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-mci --reporter mocha-multi --verbose",
"test:api-mediation": "MOCHAWESOME_REPORTFILENAME=api-mediation FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-mediation --reporter mocha-multi --verbose",
"test:api-multi-track": "MOCHAWESOME_REPORTFILENAME=api-multi-track FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-multi-track --reporter mocha-multi --verbose",
"test:api-nihl": "MOCHAWESOME_REPORTFILENAME=api-nihl FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-nihl --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-not-suitable-sdo": "MOCHAWESOME_REPORTFILENAME=api-not-suitable-sdo FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-not-suitable-sdo --reporter mocha-multi --verbose",
"test:api-qm": "MOCHAWESOME_REPORTFILENAME=api-qm FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-qm --reporter mocha-multi --verbose",
"test:api-rfr": "MOCHAWESOME_REPORTFILENAME=api-rfr FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-rfr --reporter mocha-multi --verbose",
"test:api-settle-claim": "MOCHAWESOME_REPORTFILENAME=api-settle-claim FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-settle-claim --reporter mocha-multi --verbose",
"test:api-spec-counter-claim": "MOCHAWESOME_REPORTFILENAME=api-spec-counter-claim FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-spec-counter-claim --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-stay-case": "MOCHAWESOME_REPORTFILENAME=api-stay-case FUNCTIONAL=true npx codeceptjs run-workers --suites 2 --grep @api-stay-case --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:e2e-api-data": "node e2e/e2e-documentation/generator/e2e-data/generate-e2e-api-data.js",
"test:generate:e2e-ui-data": "node e2e/e2e-documentation/generator/e2e-data/generate-e2e-ui-data.js",
"test:confluence:e2e-api-table": "node e2e/e2e-documentation/confluence/e2e-table/upload-e2e-api-table.js",
"test:confluence:e2e-ui-table": "node e2e/e2e-documentation/confluence/e2e-table/upload-e2e-ui-table.js",
"test:readme:e2e-api-table": "node e2e/e2e-documentation/readme/e2e-table/update-e2e-api-table.js",
"test:readme:e2e-ui-table": "node e2e/e2e-documentation/readme/e2e-table/update-e2e-ui-table.js",
"test:generate:ft-groups-api-data": "node e2e/e2e-documentation/generator/ft-groups-data/generate-ft-groups-api-data.js",
"test:generate:ft-groups-ui-data": "node e2e/e2e-documentation/generator/ft-groups-data/generate-ft-groups-ui-data.js",
"test:confluence:ft-groups-api-table": "node e2e/e2e-documentation/confluence/ft-groups-table/upload-ft-groups-api-table.js",
"test:confluence:ft-groups-ui-table": "node e2e/e2e-documentation/confluence/ft-groups-table/upload-ft-groups-ui-table.js",
"test:readme:ft-groups-api-table": "node e2e/e2e-documentation/readme/ft-groups-table/update-ft-groups-api-table.js",
"test:readme:ft-groups-ui-table": "node e2e/e2e-documentation/readme/ft-groups-table/update-ft-groups-ui-table.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:local:ui": "npx playwright test --project e2e-full-functional --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": "^24.0.0",
"@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": "^17.0.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": "^9.0.0"
},
"lint-staged": {
"playwright-ui/**/*.{ts,tsx}": "prettier --write",
"**/*.{ts,tsx,js,mjs,cjs}": "eslint"
},
"resolutions": {
"minimatch": "^3.0.5"
},
"packageManager": "yarn@4.10.3"
}