Skip to content

Commit 49a1ecc

Browse files
Add initial protractor removal (#1409)
* Add initial protractor removal Integration and a11y tests work in this commit. Going to use this as source of truth and try to fix codecepttE2E * Update yarn.lock * Add codecept test changes --------- Co-authored-by: RiteshHMCTS <[email protected]>
1 parent 207c789 commit 49a1ecc

File tree

84 files changed

+464
-6830
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+464
-6830
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ Run `ng build` to build the project. The build artifacts will be stored in the `
2929

3030
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
3131

32-
## Running end-to-end tests
33-
34-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
35-
3632
## Integration Documentation
3733

3834
https://tools.hmcts.net/confluence/display/EUI/EXUI+Low+Level+Design

angular.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -138,18 +138,6 @@
138138
"root": "e2e/",
139139
"projectType": "application",
140140
"architect": {
141-
"e2e": {
142-
"builder": "@angular-devkit/build-angular:protractor",
143-
"options": {
144-
"protractorConfig": "e2e/protractor.conf.js",
145-
"devServerTarget": "rpx-xui-manage-organisations:serveTest"
146-
},
147-
"configurations": {
148-
"production": {
149-
"devServerTarget": "rpx-xui-manage-organisations:serve:production"
150-
}
151-
}
152-
},
153141
"lint": {
154142
"builder": "@angular-devkit/build-angular:tslint",
155143
"options": {

e2e/protractor.conf.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

e2e/src/app.po.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

e2e/tsconfig.e2e.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"clean": "rm -f -r node_modules && rm -f yarn.lock",
1414
"build:ng": "ng build",
1515
"build:node": "cd api && yarn build",
16-
"e2e": "ng e2e",
1716
"fortifyScan": "./test/java/gradlew -p test/java fortifyScan",
1817
"lint": "yarn lint:ng && yarn lint:node",
1918
"lint:ng": "yarn eslint src",
@@ -30,7 +29,6 @@
3029
"start:node:docker": "PUI_ENV=ldocker;cd api && yarn watch",
3130
"test": "yarn test:ng",
3231
"test:a11y": "echo ran in later step",
33-
"test:a11y1": "ng e2e --protractorConfig=./test/accessibility/config/protractor.conf.js",
3432
"test:a11yInTest": "node ./test_codecept/backendMock/configCopy.js && NODE_CONFIG_ENV=mock TEST_TYPE=a11y PARALLEL=false npx codeceptjs run --config=./test_codecept/codeceptCommon/codeceptA11y.conf.ts",
3533
"test:api": "ts-node ./test_codecept/integration/tests/test.ts",
3634
"test:can-i-deploy:consumer": "export VERSION=$(git rev-parse --short HEAD) && SSL_CERT_FILE=api/test/pact/cer/ca-bundle.crt pact-broker can-i-deploy --pacticipant 'xui_manageOrg' --version ${VERSION} --broker-base-url https://pact-broker.platform.hmcts.net",
@@ -40,23 +38,18 @@
4038
"test:crossbrowser": "yarn playwright install --with-deps && yarn playwright install webkit && yarn playwright install firefox && npx playwright test -c playwright.config.ts",
4139
"test:node": "cd api && yarn test",
4240
"test:functional": "yarn build && node ./test_codecept/backendMock/configCopy.js && NODE_CONFIG_ENV=mock && yarn playwright install chromium && yarn test:api && yarn run test:xuiIntegration && yarn run test:codeceptE2E && yarn run test:a11yInTest",
43-
"test:functional:backup": "webdriver-manager update --versions.chrome 2.40 && protractor ./test/e2e/config/functional.conf.js",
44-
"test:functional:local": "webdriver-manager update --versions.chrome 2.40 && protractor ./test/e2e/config/functional.conf.js --local",
4541
"test:fullfunctional": "yarn test:api && yarn run test:codeceptE2E",
46-
"test:fullfunctional:local": "webdriver-manager update --versions.chrome 2.40 && protractor ./test/e2e/config/fullfunctional.conf.js --local",
4742
"test:mutation": "echo 'not implemented'",
4843
"test:mutation:fix": "NODE_ENV=development npx nyc stryker run stryker.node.conf.js ",
4944
"test:ng": "ng test rpx-xui-manage-organisations",
50-
"test:ngIntegration": "yarn test:ngIntegrationMockEnv && ng e2e --protractorConfig=./test/ngIntegration/config/protractor.conf.js",
5145
"test:ngIntegrationMockEnv": "node -e 'require(`./test/nodeMock/availablePortFinder.js`).configureTestProxyPort()'",
5246
"test:node:watch": "cd api && yarn test:watch",
5347
"test:pact:run-and-publish": "yarn test-pact && yarn publish-pact",
5448
"test:smoke": "yarn playwright install chromium && TEST_TYPE=smoke npx codeceptjs run --plugins retryFailedStep,cucumberJsonReporter --config ./test_codecept/codeceptCommon/codecept.conf.ts --features --grep @smoke --reporter mochawesome",
55-
"test:smoke:local": "webdriver-manager update --versions.chrome 2.40 && protractor ./test/e2e/config/smoke.conf.js --local",
5649
"test-pact": "NODE_PATH=. NODE_ENV=pacttesting LOG_LEVEL=info mocha --timeout 10000 -r ts-node/register api/test/pact/pact-tests/**/*.spec.ts",
5750
"testx": "cd api && yarn coverage && cd .. && yarn test:ng //node tests are broken need to fix",
5851
"test:codeceptE2EDebug": "DEBUG=true TEST_TYPE=e2e npx codeceptjs run --plugins cucumberJsonReporter --plugins retryFailedStep --config ./test_codecept/codeceptCommon/codecept.conf.ts --features",
59-
"test:codeceptE2E": "TEST_TYPE=e2e npx codeceptjs run-workers --suites 6 --plugins cucumberJsonReporter --plugins retryFailedStep --config ./test_codecept/codeceptCommon/codecept.conf.ts --features",
52+
"test:codeceptE2E": "TEST_TYPE=e2e npx codeceptjs run-workers --suites 6 --config ./test_codecept/codeceptCommon/codecept.conf.ts --features",
6053
"test:backendMock": "DEBUG=true nodemon test_codecept/backendMock/app --standalone",
6154
"test:xuiIntegrationDebug": "DEBUG=true NODE_CONFIG_ENV=mock TEST_TYPE=ngIntegration npx codeceptjs run -p pauseOnFail --config ./test_codecept/codeceptCommon/codecept.conf.ts --features",
6255
"test:xuiIntegration": "yarn build && node ./test_codecept/backendMock/configCopy.js && NODE_CONFIG_ENV=mock TEST_TYPE=ngIntegration PARALLEL=true npx codeceptjs run-workers --suites 6 --config ./test_codecept/codeceptCommon/codecept.conf.ts --features"
@@ -76,8 +69,6 @@
7669
"@angular/platform-browser-dynamic": "^18.2.13",
7770
"@angular/router": "^18.2.13",
7871
"@circlon/angular-tree-component": "^11.0.4",
79-
"@cucumber/cucumber": "^11.0.0",
80-
"@cucumber/pretty-formatter": "^1.0.1",
8172
"@edium/fsm": "^2.1.2",
8273
"@hmcts/ccd-case-ui-toolkit": "7.2.0",
8374
"@hmcts/ccpay-web-component": "6.2.15",
@@ -164,6 +155,7 @@
164155
"smoothscroll-polyfill": "^0.4.3",
165156
"striptags": "^3.1.1",
166157
"tar-fs": "^3.0.9",
158+
"why-is-node-running": "^3.2.2",
167159
"zone.js": "~0.14.10"
168160
},
169161
"devDependencies": {
@@ -197,10 +189,8 @@
197189
"codeceptjs-cucumber-json-reporter": "^1.0.14",
198190
"codelyzer": "^5.1.2",
199191
"cross-env": "^7.0.2",
200-
"cucumber": "5.1.0",
201192
"cucumber-html-report": "0.6.5",
202-
"cucumber-html-reporter": "^4.0.5",
203-
"cucumber-pretty": "1.5.0",
193+
"cucumber-html-reporter": "^7.1.1",
204194
"eslint": "^8.37.0",
205195
"jasmine-core": "~5.1.0",
206196
"jasmine-marbles": "^0.9.2",
@@ -221,10 +211,6 @@
221211
"pa11y": "^8.0.0",
222212
"pa11y-reporter-html": "^2.0.0",
223213
"portfinder": "^1.0.28",
224-
"protractor": "~7.0.0",
225-
"protractor-cucumber-framework": "^9.7.0",
226-
"protractor-multiple-cucumber-html-reporter-plugin": "1.8.0",
227-
"protractor-screenshot-utils": "^1.0.5",
228214
"rest-assured": "^0.1.0",
229215
"should": "13.2.3",
230216
"sinon": "^7.2.3",

test/accessibility/config/protractor.conf.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

test/e2e/config/common.conf.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)