-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
112 lines (112 loc) · 11.6 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
{
"name": "civil-ccd-definition",
"version": "0.0.1",
"description": "Civil e2e tests",
"scripts": {
"lint": "eslint e2e",
"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-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: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=non-prod-e2e-ft 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",
"prepare": "husky install"
},
"license": "MIT",
"devDependencies": {
"chai": "^4.3.4",
"codeceptjs": "^3.5.11",
"deep-equal-in-any-order": "^1.0.28",
"eslint": "^8.20.0",
"eslint-plugin-codeceptjs": "^1.3.0",
"faker": "^5.5.3",
"html_codesniffer": "^2.5.1",
"husky": "^7.0.2",
"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",
"totp-generator": "^0.0.14",
"uuid": "^3.4.0",
"webdriverio": "^6.12.1"
},
"resolutions": {
"minimatch": "^3.0.5"
},
"packageManager": "[email protected]"
}