Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EUI-8987 Consolidate manage organisation pact tests #1194

Open
wants to merge 296 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
296 commits
Select commit Hold shift + click to select a range
766fc29
EUI-8797 Register other org - CYA display amendments
johnbenjamin-hmcts Sep 19, 2023
d80542a
EUI-8797 Register other org - CYA display amendments
johnbenjamin-hmcts Sep 19, 2023
f4090b8
EUI-8797 Register other org - CYA display amendments
johnbenjamin-hmcts Sep 20, 2023
04f023a
EUI-8797 Register other org - CYA display amendments
johnbenjamin-hmcts Sep 20, 2023
5d5f8b0
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
johnbenjamin-hmcts Sep 20, 2023
ae88764
EUI-8797 Register other org - CYA display amendments
johnbenjamin-hmcts Sep 20, 2023
465dde6
register other org workflow pages a11y tests added (#1103)
sreekanthpuligadda Sep 20, 2023
9868605
Add test fixes
connorpgpmcelroy Sep 20, 2023
2ec98ed
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
connorpgpmcelroy Sep 20, 2023
e3e1e7b
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Sep 20, 2023
5a3f2f2
Temporary fix for back link
DavidJayakumar Sep 20, 2023
0f2edc5
postcode validator
DavidJayakumar Sep 21, 2023
b644586
Merge pull request #1099 from hmcts/feature/EUI-8756-is-uk-address-func
connorpgpmcelroy Sep 21, 2023
fe4b795
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Sep 21, 2023
a0ca312
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Sep 21, 2023
5b2d645
Merge pull request #1100 from hmcts/feature/EUI-8758
DavidJayakumar Sep 21, 2023
c0b0951
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Sep 21, 2023
e5c6b01
EUI-8821 Register Other Org - Service not listed
johnbenjamin-hmcts Sep 22, 2023
086a9db
Update organisation types value
DavidJayakumar Sep 22, 2023
346e234
fix typos
DavidJayakumar Sep 22, 2023
60faeda
EUI-8821 Register Other Org - Service not listed
johnbenjamin-hmcts Sep 22, 2023
f944f18
Merge branch 'master' into feature/Register-Other-Org-Sprint-31.4
johnbenjamin-hmcts Sep 22, 2023
20482fd
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
johnbenjamin-hmcts Sep 22, 2023
4e21426
Update document-exchange-reference.component.ts
johnbenjamin-hmcts Sep 22, 2023
c200bb7
Update yarn-audit-known-issues
johnbenjamin-hmcts Sep 22, 2023
c95bfda
Update yarn-audit-known-issues
johnbenjamin-hmcts Sep 22, 2023
870f762
Merge remote-tracking branch 'origin/feature/EUI-8797-Register-other-…
DavidJayakumar Sep 22, 2023
b6ca425
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Sep 22, 2023
dc3a5bf
Merge from base branch
johnbenjamin-hmcts Sep 22, 2023
11d7b65
Merge remote-tracking branch 'origin/feature/EUI-8797-Register-other-…
DavidJayakumar Sep 22, 2023
2417d52
Merge branch 'feature/EUI-8797-Register-other-org---CYA-display-amend…
johnbenjamin-hmcts Sep 22, 2023
0dc4f98
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
johnbenjamin-hmcts Sep 22, 2023
e297433
EUI-8821 Register Other Org - Service not listed
johnbenjamin-hmcts Sep 22, 2023
57e8923
EUI-8797 Register other org - CYA display amendments
johnbenjamin-hmcts Sep 22, 2023
052a653
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Sep 22, 2023
6cfa0a5
EUI-8838 Register Other Other - Back link not working
johnbenjamin-hmcts Sep 25, 2023
1c13c6b
Merge branch 'feature/Register-Other-Org-Sprint-31.3' into feature/EU…
udaydenduluri33 Sep 25, 2023
a2d0337
Create renovate.json
johnbenjamin-hmcts Sep 25, 2023
7344bfb
Create renovate.json
johnbenjamin-hmcts Sep 25, 2023
8bbff4b
Create renovate.json
johnbenjamin-hmcts Sep 25, 2023
a827a6e
Merge branch 'feature/Register-Other-Org-Sprint-31.3' into feature/EU…
Sep 25, 2023
90926a3
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Sep 25, 2023
993db90
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Sep 25, 2023
e908f38
EUI-8838 Register Other Other - Back link not working
johnbenjamin-hmcts Sep 25, 2023
de15e7b
Merge pull request #1102 from hmcts/feature/EUI-8797-Register-other-o…
johnbenjamin-hmcts Sep 25, 2023
56415f1
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
johnbenjamin-hmcts Sep 25, 2023
0473cd3
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Sep 25, 2023
7b3d68b
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Sep 25, 2023
b316af7
Update organisation-services-access.component.spec.ts
johnbenjamin-hmcts Sep 25, 2023
5c4cab4
Merge pull request #1107 from hmcts/feature/EUI-8730
DavidJayakumar Sep 26, 2023
3f725d8
EUI-8838 Register Other Other - Back link not working
johnbenjamin-hmcts Sep 26, 2023
6b5e827
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Sep 26, 2023
661077b
Merge pull request #1105 from hmcts/feature/EUI-8786
DavidJayakumar Sep 26, 2023
931676b
EUI-8838 Register Other Other - Back link not working
johnbenjamin-hmcts Sep 26, 2023
826227a
Update organisation-services-access.component.ts
johnbenjamin-hmcts Sep 26, 2023
94ac00c
EUI-8838 Register Other Other - Back link not working
johnbenjamin-hmcts Sep 26, 2023
e15db40
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into bug/EUI-88…
johnbenjamin-hmcts Sep 26, 2023
64c87f3
fix the 7 digit PBA
Sep 26, 2023
e9eea60
Merge branch 'master' into feature/EUI-8789
udaydenduluri33 Sep 26, 2023
030b160
Call Lov API for org type
DavidJayakumar Sep 26, 2023
6251e0d
initialise PBA
Sep 26, 2023
a52673b
pba fix
Sep 26, 2023
b2c2f81
EUI-8838 Register Other Other - Back link not working
johnbenjamin-hmcts Sep 26, 2023
d69fc7c
Merge branch 'feature/EUI-8821-Register-Other-Org---Service-not-liste…
johnbenjamin-hmcts Sep 26, 2023
2536557
Update organisation-services-access.component.ts
johnbenjamin-hmcts Sep 26, 2023
8379c13
Merge pull request #1106 from hmcts/feature/EUI-8821-Register-Other-O…
johnbenjamin-hmcts Sep 26, 2023
a9a8a84
Update regulator-details.component.spec.ts
johnbenjamin-hmcts Sep 26, 2023
ee02851
Merge branch 'master' into feature/Register-Other-Org-Sprint-31.4
johnbenjamin-hmcts Sep 26, 2023
97e9f4a
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into bug/EUI-88…
johnbenjamin-hmcts Sep 26, 2023
d6541da
Update organisation-services-access.component.spec.ts
johnbenjamin-hmcts Sep 26, 2023
7777585
pba
Sep 26, 2023
5934561
Add value to preview yaml
DavidJayakumar Sep 26, 2023
6472358
register org automation test page object steps updates
sreekanthpuligadda Sep 26, 2023
a9747e9
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
Sep 27, 2023
0ac3646
EUI-8838 Register Other Other - Back link not working
johnbenjamin-hmcts Sep 27, 2023
a95ba7c
Fix the unit tests
Sep 27, 2023
95197aa
EUI-8838 Register Other Other - Back link not working
johnbenjamin-hmcts Sep 27, 2023
81ca479
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into bug/EUI-88…
johnbenjamin-hmcts Sep 27, 2023
a34eef8
Merge pull request #1093 from hmcts/feature/EUI-8789
udaydenduluri33 Sep 27, 2023
5469e23
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Sep 27, 2023
5cb9864
Merge pull request #1113 from hmcts/bug/EUI-8838-Register-Other-Other…
johnbenjamin-hmcts Sep 27, 2023
6d39c7b
Merge branch 'master' into feature/Register-Other-Org-Sprint-31.4
johnbenjamin-hmcts Sep 27, 2023
7a8e98c
Feature/e UI 8771 postcode lookup validation (#1112)
connorpgpmcelroy Sep 29, 2023
7bc52f7
e2e test for register other create scenario
sreekanthpuligadda Oct 2, 2023
6ed995d
ROO basic flow fixes
sreekanthpuligadda Oct 2, 2023
546ca76
Post Registration Data (#1122)
udaydenduluri33 Oct 3, 2023
9e0b8b3
EUI-8841 Register Other Org Accessibility issues
johnbenjamin-hmcts Oct 3, 2023
3793e44
EUI-8841 Register Other Org Accessibility issues
johnbenjamin-hmcts Oct 3, 2023
09440b8
EUI-8835 Register Other Org - Organisation page changes (#1124)
johnbenjamin-hmcts Oct 3, 2023
fd191ac
Update yarn-audit-known-issues
johnbenjamin-hmcts Oct 3, 2023
ff13062
e2e test for register other create scenario (#1128)
sreekanthpuligadda Oct 4, 2023
f0abd67
Add required changes and test changes (#1131)
connorpgpmcelroy Oct 4, 2023
0b991c0
system user auth for prd api
DavidJayakumar Oct 4, 2023
282c2c0
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Oct 4, 2023
8046c39
ROO e2e test fix for current change impact on test
sreekanthpuligadda Oct 5, 2023
68a9029
Merge pull request #1117 from hmcts/feature/EUI-8729
DavidJayakumar Oct 5, 2023
c264cb0
new register org BDD scenarios
sreekanthpuligadda Oct 10, 2023
a184239
emabled playwring as codecept driver
sreekanthpuligadda Oct 11, 2023
fae1259
CVE suppress
sreekanthpuligadda Oct 11, 2023
84c7be4
hooks fix
sreekanthpuligadda Oct 11, 2023
4699e62
more ROO tests
sreekanthpuligadda Oct 11, 2023
3156837
ROO test updates
sreekanthpuligadda Oct 12, 2023
4eecdc9
yarn audit changes
Oct 12, 2023
5657fcd
playwright chromium install
sreekanthpuligadda Oct 12, 2023
b5e3ef5
functional test screenshot fix, invite user fix
sreekanthpuligadda Oct 12, 2023
b61a82e
test fixes
sreekanthpuligadda Oct 12, 2023
958b032
Feature/e UI 8869 (#1135)
udaydenduluri33 Oct 12, 2023
56b4fe5
excluded in-dev and failing tests
sreekanthpuligadda Oct 12, 2023
20eed1d
Update app.routes.ts (#1136)
connorpgpmcelroy Oct 12, 2023
3a6ab2f
test fix
sreekanthpuligadda Oct 12, 2023
3f304ee
test inclusion exclsuion in AAT preview for feature toggles features
sreekanthpuligadda Oct 12, 2023
b0e9efb
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into tests/regi…
sreekanthpuligadda Oct 13, 2023
56326e7
Merge branch 'master' into feature/Register-Other-Org-Sprint-31.4
johnbenjamin-hmcts Oct 13, 2023
73b386a
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
johnbenjamin-hmcts Oct 13, 2023
863d78b
Merge branch 'tests/register-org-functional-tests' into feature/EUI-8…
johnbenjamin-hmcts Oct 13, 2023
4c17ea3
EUI-8841 Register Other Org - Accessibility issues
johnbenjamin-hmcts Oct 13, 2023
740eb89
fix Address optional fields (#1142)
udaydenduluri33 Oct 13, 2023
67d694a
EUI-8841 Register Other Org - Accessibility issues
johnbenjamin-hmcts Oct 16, 2023
4074626
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
johnbenjamin-hmcts Oct 16, 2023
dde69fa
EUI-8841 Register Other Org - Accessibility issues
johnbenjamin-hmcts Oct 16, 2023
dcab191
pa11y test updates for ROO
sreekanthpuligadda Oct 16, 2023
03663fc
EUI-8841 Register Other Org - Accessibility issues
johnbenjamin-hmcts Oct 16, 2023
d40ace9
EUI-8841 Register Other Org - Accessibility issues
johnbenjamin-hmcts Oct 16, 2023
167f282
Update yarn-audit-known-issues
johnbenjamin-hmcts Oct 16, 2023
1269d4e
ROO functional tests (#1139)
sreekanthpuligadda Oct 16, 2023
7709e8a
test update
sreekanthpuligadda Oct 17, 2023
d5df8b2
EUI-8921 Register Other Org - Back link issue
johnbenjamin-hmcts Oct 19, 2023
9808ff6
EUI-8921 Register Other Org - Back link issue
johnbenjamin-hmcts Oct 19, 2023
511805e
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into bug/EUI-89…
johnbenjamin-hmcts Oct 19, 2023
f7fe847
Update yarn-audit-known-issues
johnbenjamin-hmcts Oct 19, 2023
a0a9707
EUI-8929 ROO Individual regulator corrections
johnbenjamin-hmcts Oct 19, 2023
af08871
Merge branch 'bug/EUI-8921-Register-Other-Org---Back-link-issue' into…
johnbenjamin-hmcts Oct 19, 2023
8f1f7b9
EUI-8929 ROO Individual regulator corrections
johnbenjamin-hmcts Oct 19, 2023
08c2f1e
Update regulator-details.component.ts
johnbenjamin-hmcts Oct 19, 2023
827d39a
Update yarn-audit-known-issues
johnbenjamin-hmcts Oct 20, 2023
e77cc2a
Merge branch 'bug/EUI-8921-Register-Other-Org---Back-link-issue' into…
johnbenjamin-hmcts Oct 20, 2023
1447180
a11y test fix
sreekanthpuligadda Oct 20, 2023
861fa4c
CVE to known issues
sreekanthpuligadda Oct 20, 2023
c2177fe
Merge pull request #1132 from hmcts/feature/EUI-8841-Register-Other-O…
johnbenjamin-hmcts Oct 20, 2023
2b5b593
EUI-8928 ROO CYA page corrections
johnbenjamin-hmcts Oct 23, 2023
6fee1e1
EUI-8928 ROO CYA page corrections
johnbenjamin-hmcts Oct 23, 2023
cc0a441
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 23, 2023
6c475e9
Update check-your-answers.component.ts
johnbenjamin-hmcts Oct 23, 2023
684d94b
Merge branch 'master' into feature/Register-Other-Org-Sprint-31.5
johnbenjamin-hmcts Oct 23, 2023
db36e76
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 23, 2023
3b317f2
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 23, 2023
6238ad1
Fix issue
DavidJayakumar Oct 23, 2023
7329dbc
fix test
DavidJayakumar Oct 24, 2023
fc9a1df
Merge pull request #1147 from hmcts/bug/EUI-8921-Register-Other-Org--…
johnbenjamin-hmcts Oct 24, 2023
d4167d0
EUI-8927 ROO Pba details page fixes
johnbenjamin-hmcts Oct 24, 2023
9770189
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 24, 2023
c290d1c
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 24, 2023
97a32cb
Update yarn-audit-known-issues
johnbenjamin-hmcts Oct 24, 2023
68d6c09
Merge branch 'bug/EUI-8929-ROO-Individual-regulator-corrections' of h…
johnbenjamin-hmcts Oct 24, 2023
0df4bd5
Merge pull request #1148 from hmcts/bug/EUI-8929-ROO-Individual-regul…
johnbenjamin-hmcts Oct 24, 2023
8bc0860
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 24, 2023
b3e9e85
Move logic to app-utils
DavidJayakumar Oct 24, 2023
50bc09c
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-8923
DavidJayakumar Oct 24, 2023
33f6963
EUI-8927 ROO Pba details page fixes
johnbenjamin-hmcts Oct 24, 2023
747b0f3
Feature/e UI 8831 review roo (#1149)
connorpgpmcelroy Oct 24, 2023
34c75dc
EUI-8939 ROO PBA changes on CYA page
johnbenjamin-hmcts Oct 24, 2023
11629a7
EUI-8939 ROO PBA changes on CYA page
johnbenjamin-hmcts Oct 25, 2023
bedbfdc
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 25, 2023
68840f9
Update yarn-audit-known-issues
johnbenjamin-hmcts Oct 25, 2023
169a309
Merge branch 'master' into feature/Register-Other-Org-Sprint-31.5
johnbenjamin-hmcts Oct 25, 2023
3c1e521
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 25, 2023
8c8753d
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 25, 2023
fb69c0b
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-8923
johnbenjamin-hmcts Oct 25, 2023
4832865
Merge pull request #1155 from hmcts/bug/EUI-8923
DavidJayakumar Oct 25, 2023
90ba877
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 25, 2023
4b6fc31
EUI-8939 ROO PBA changes on CYA page
johnbenjamin-hmcts Oct 25, 2023
59e8150
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 25, 2023
6b061f8
EUI-8927 ROO Pba details page fixes
johnbenjamin-hmcts Oct 25, 2023
651265a
Merge pull request #1153 from hmcts/bug/EUI-8928-ROO-CYA-page-correct…
johnbenjamin-hmcts Oct 25, 2023
174b007
EUI-8926 ROO Organisation regulators fixes
johnbenjamin-hmcts Oct 26, 2023
52952ae
Update yarn-audit-known-issues
connorpgpmcelroy Oct 26, 2023
ad8e1cc
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 26, 2023
46dc478
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 26, 2023
c544b6f
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 26, 2023
1374b3d
EUI-8927 ROO Pba details page fixes
johnbenjamin-hmcts Oct 26, 2023
13ba09b
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 26, 2023
33db64f
EUI-8926 ROO Organisation regulators fixes
johnbenjamin-hmcts Oct 26, 2023
271bc6e
EUI-8926 ROO Organisation regulators fixes
johnbenjamin-hmcts Oct 27, 2023
7a222c8
Fix test failure
johnbenjamin-hmcts Oct 27, 2023
400e1fb
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 27, 2023
9d01135
Make error message changes (#1161)
connorpgpmcelroy Oct 27, 2023
95cd364
fix issue in CYA
DavidJayakumar Oct 27, 2023
f37f03b
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
johnbenjamin-hmcts Oct 27, 2023
ef0931d
EUI-8927 ROO Pba details page fixes
johnbenjamin-hmcts Oct 27, 2023
a7b2846
Merge pull request #1157 from hmcts/bug/EUI-8927-ROO-Pba-details-page…
johnbenjamin-hmcts Oct 30, 2023
0a09cd4
Update yarn-audit-known-issues
johnbenjamin-hmcts Oct 30, 2023
4a85be6
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
DavidJayakumar Oct 30, 2023
3c2d72b
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI=8945
DavidJayakumar Oct 30, 2023
d5df46c
Merge pull request #1166 from hmcts/bug/EUI=8945
DavidJayakumar Oct 30, 2023
2c9553d
Merge branch 'feature/Register-Other-Org-Sprint-31.5' into bug/EUI-89…
DavidJayakumar Oct 30, 2023
41b5cd0
invite ueer validation test added
sreekanthpuligadda Oct 30, 2023
cce3093
Merge pull request #1164 from hmcts/bug/EUI-8926-ROO-Organisation-reg…
johnbenjamin-hmcts Oct 30, 2023
6acf186
Make address postcode fix (#1167)
connorpgpmcelroy Oct 30, 2023
8ea60c6
Make changes to error message display on 400 (#1163)
connorpgpmcelroy Oct 31, 2023
9f4a65e
Update .nvmrc
udaydenduluri33 Nov 1, 2023
6845ab2
node version rollback
Nov 2, 2023
2d93196
Merge branch 'master' into feature/Register-Other-Org-Sprint-31.5
DavidJayakumar Nov 3, 2023
9b2d2c3
Merge branch 'master' into feature/Register-Other-Org-Sprint-31.5
udaydenduluri33 Nov 8, 2023
68b8155
ROO test updates to use user targetting (#1178)
sreekanthpuligadda Nov 8, 2023
96f22b0
EUI-8961 ROO Companies house page corrections
johnbenjamin-hmcts Nov 9, 2023
f9d9aac
EUI-8961 ROO Companies house page corrections
johnbenjamin-hmcts Nov 9, 2023
9d1be07
EUI-8961 ROO Companies house page corrections
johnbenjamin-hmcts Nov 9, 2023
dbacc30
EUI-8970 ROO Organisation services page changes
johnbenjamin-hmcts Nov 9, 2023
a193ffd
Update yarn-audit-known-issues
johnbenjamin-hmcts Nov 10, 2023
72dba01
EUI-8961 ROO Companies house page corrections
johnbenjamin-hmcts Nov 10, 2023
97c4623
Update yarn-audit-known-issues
johnbenjamin-hmcts Nov 10, 2023
7214bd3
Merge branch 'feature/Register-Other-Org-Sprint-31.6' into bug/EUI-89…
johnbenjamin-hmcts Nov 10, 2023
4c1751a
Make changes to post services correctly (#1158)
connorpgpmcelroy Nov 10, 2023
9e9cd9f
Add common-lib tag (#1169)
connorpgpmcelroy Nov 10, 2023
c3cae9b
Merge pull request #1181 from hmcts/bug/EUI-8961-ROO-Companies-house-…
johnbenjamin-hmcts Nov 10, 2023
6f3c5f3
EUI-8974 ROO Regulator page corrections
johnbenjamin-hmcts Nov 10, 2023
99190ce
Merge branch 'feature/Register-Other-Org-Sprint-31.6' into bug/EUI-89…
johnbenjamin-hmcts Nov 10, 2023
cf4f07e
EUI-8969: MyHMCTS Terms and Conditions changes (#1183)
Daniel-Lam Nov 10, 2023
839f762
Use error message, not description (#1174)
connorpgpmcelroy Nov 10, 2023
af3a0a6
Update company-house-details.component.html (#1177)
connorpgpmcelroy Nov 10, 2023
47f3488
Update register-org.component.ts (#1180)
connorpgpmcelroy Nov 10, 2023
745de0f
Get tag (#1179)
connorpgpmcelroy Nov 10, 2023
36aca81
Merge pull request #1185 from hmcts/bug/EUI-8974-ROO-Regulator-page-c…
johnbenjamin-hmcts Nov 13, 2023
7884763
Merge pull request #1184 from hmcts/bug/EUI-8970-ROO-Organisation-ser…
johnbenjamin-hmcts Nov 13, 2023
141f54d
EUI-8925 ROO Minor corrections on several pages
johnbenjamin-hmcts Nov 13, 2023
3a32803
Update yarn-audit-known-issues
johnbenjamin-hmcts Nov 13, 2023
5f36b56
Merge branch 'feature/Register-Other-Org-Sprint-31.6' into bug/EUI-89…
udaydenduluri33 Nov 13, 2023
02576c0
EUI-8925 ROO Minor corrections on several pages
johnbenjamin-hmcts Nov 14, 2023
8204034
EUI-8925 ROO Minor corrections on several pages
johnbenjamin-hmcts Nov 14, 2023
7d483d2
EUI-8925 ROO Minor corrections on several pages
johnbenjamin-hmcts Nov 14, 2023
45eba90
EUI-8971/EUI-8972: Regulator Details amendments (#1186)
Daniel-Lam Nov 14, 2023
9b4fd13
Merge branch 'master' into feature/Register-Other-Org-Sprint-31.6
DavidJayakumar Nov 14, 2023
da05f46
fix test
DavidJayakumar Nov 14, 2023
01def5f
Merge branch 'master' into feature/Register-Other-Org-Sprint-31.6
johnbenjamin-hmcts Nov 14, 2023
5a6c99e
Merge branch 'feature/EUI-8987-Consolidate-Manage-Organisation-PACT-t…
johnbenjamin-hmcts Nov 14, 2023
c780527
update yarn audit known issues
johnbenjamin-hmcts Nov 14, 2023
f780691
Merge branch 'feature/EUI-8987-Consolidate-Manage-Organisation-PACT-t…
johnbenjamin-hmcts Nov 14, 2023
ab1c332
Update yarn-audit-known-issues
johnbenjamin-hmcts Nov 14, 2023
2aaaeec
Merge pull request #1037 from hmcts/bug/EUI-8521
johnbenjamin-hmcts Nov 14, 2023
4a9e363
Merge pull request #1027 from hmcts/feature/EUI-8145
johnbenjamin-hmcts Nov 14, 2023
839191f
Merge branch 'feature/Register-Other-Org-Sprint-31.6' into bug/EUI-89…
johnbenjamin-hmcts Nov 15, 2023
e35cdd6
Feature/EUI 8952 (#1190)
DavidJayakumar Nov 15, 2023
29d8dfe
Merge branch 'feature/Register-Other-Org-Sprint-31.6' into bug/EUI-89…
johnbenjamin-hmcts Nov 15, 2023
8e6e8f6
Merge branch 'feature/EUI-8987-Consolidate-Manage-Organisation-PACT-t…
johnbenjamin-hmcts Nov 16, 2023
ebb59d6
Merge pull request #1028 from hmcts/tech/EUI-8145-s2s-auth-pact-test
johnbenjamin-hmcts Nov 16, 2023
45265ad
Update commonlib version
johnbenjamin-hmcts Nov 16, 2023
cb717ec
Merge pull request #1188 from hmcts/bug/EUI-8925-ROO-Minor-correction…
johnbenjamin-hmcts Nov 17, 2023
66fcf4a
Merge branch 'feature/Register-Other-Org-Sprint-31.6' into feature/EU…
johnbenjamin-hmcts Nov 20, 2023
492dfe7
Bumping chart version/ fixing aliases
hmcts-jenkins-j-to-z[bot] Nov 21, 2023
5518f1a
Merge branch 'master' into feature/EUI-8987-Consolidate-Manage-Organi…
johnbenjamin-hmcts Nov 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions api/models/registrationData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export type RegistrationData = {
hasDxReference: boolean;
dxNumber?: string;
dxExchange?: string;
services: string[];
services: {key: string, value: string}[];
otherServices?: string;
hasPBA: boolean;
contactDetails: ContactDetails;
Expand Down Expand Up @@ -72,10 +72,5 @@ export type RegistrationRequest = {
}
],
orgType: string,
orgAttributes?: [
{
key: string,
value: string
}
]
orgAttributes?: {key: string, value: string}[]
}
11 changes: 10 additions & 1 deletion api/registerOrganisation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,17 @@ export function mapRequestObject(requestBody: RegistrationData): RegistrationReq
dxAddress: getDx(requestBody)
}
],
orgType: requestBody.organisationType.key
orgType: requestBody.organisationType.key,
orgAttributes: [
...requestBody.services.filter((service) => service.key !== undefined)
]
};
if (requestBody.otherServices && requestBody.otherServices !== '') {
request.orgAttributes.push({
key: 'otherServices',
value: requestBody.otherServices
});
}
return request;
}

Expand Down
2 changes: 1 addition & 1 deletion api/test/pact/pact-tests/feePayApi/getAccounts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { PactTestSetup } from '../settings/provider.mock';

import { Matchers } from '@pact-foundation/pact';
const { somethingLike, like } = Matchers;
const pactSetUp = new PactTestSetup({ provider: 'payment_accounts', port: 8000 });
const pactSetUp = new PactTestSetup({ provider: 'payment_creditAccountPayment', port: 8000 });

const responsePaymentAccountDto =
{
Expand Down
18 changes: 18 additions & 0 deletions api/test/pact/pact-tests/pactFixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,21 @@ export interface InviteUserResponse {
export interface OrganisationCreatedResponse {
organisationIdentifier: string;
}

export interface UserResponse {
organisationIdentifier: string;
users: User[]
}

export interface User {
userIdentifier: string,
firstName: string,
lastName: string,
email: string,
idamStatus: string,
roles: [
string
],
idamStatusCode: string,
idamMessage: string
}
11 changes: 11 additions & 0 deletions api/test/pact/pact-tests/pactUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,14 @@ export async function getDetails(idamUrl: string, token: string = null): Promise
const response = await axios.get(`${idamUrl}/details`, axiosConfig);
return response.data;
}

export async function getUsers(taskUrl: string): Promise<AxiosResponse<any>> {
const axiosConfig = {
headers: {
'Content-Type': 'application/json',
'ServiceAuthorization': 'serviceAuthToken',
'Authorization': 'Bearer some-access-token'
}
};
return axios.get(taskUrl, axiosConfig);
}
76 changes: 76 additions & 0 deletions api/test/pact/pact-tests/rdProfessionalApi/getUsers.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import { expect } from 'chai';
import { UserResponse } from '../pactFixtures';
import { getUsers } from '../pactUtil';
import { PactTestSetup } from '../settings/provider.mock';

import { Matchers } from '@pact-foundation/pact';
const { somethingLike } = Matchers;
const pactSetUp = new PactTestSetup({ provider: 'referenceData_professionalExternalUsers', port: 8000 });

describe('RD Professional API', () => {
describe('Get Users', () => {
const mockResponse = {
organisationIdentifier: somethingLike('GCXGCY1'),
users: [
{
userIdentifier: somethingLike('71ac6370-8b69-4dfa-b150-80d43407ae13'),
firstName: somethingLike('ProbatePPThree'),
lastName: somethingLike('Org2'),
email: somethingLike('[email protected]'),
idamStatus: somethingLike('ACTIVE')
}
]
};

before(async () => {
await pactSetUp.provider.setup();
const interaction = {
state: 'Get the list of users',
uponReceiving: 'A request to return the user list',
withRequest: {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer some-access-token',
'ServiceAuthorization': 'serviceAuthToken'
},
path: '/refdata/external/v1/organisations/users',
query: 'returnRoles=true&status=active'
},
willRespondWith: {
headers: {
'Content-Type': 'application/json'
},
status: 201,
body: mockResponse
}
};
// @ts-ignore
pactSetUp.provider.addInteraction(interaction);
});

it('returns the correct response', async () => {
const taskUrl: string = `${pactSetUp.provider.mockService.baseUrl}/refdata/external/v1/organisations/users?returnRoles=true&status=active`;
const resp = getUsers(taskUrl);
resp.then((response) => {
const responseDto: UserResponse = <UserResponse>response.data;
assertResponse(responseDto);
}).then(() => {
pactSetUp.provider.verify();
pactSetUp.provider.finalize();
}).finally(() => {
pactSetUp.provider.verify();
pactSetUp.provider.finalize();
});
});
});
});

function assertResponse(dto: UserResponse): void {
expect(dto.organisationIdentifier).to.be.equal('GCXGCY1');
expect(dto.users[0].userIdentifier).to.be.equal('71ac6370-8b69-4dfa-b150-80d43407ae13');
expect(dto.users[0].firstName).to.be.equal('ProbatePPThree');
expect(dto.users[0].lastName).to.be.equal('Org2');
expect(dto.users[0].email).to.be.equal('[email protected]');
expect(dto.users[0].idamStatus).to.be.equal('ACTIVE');
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"@hmcts/frontend": "0.0.50-alpha",
"@hmcts/nodejs-healthcheck": "1.7.0",
"@hmcts/properties-volume": "0.0.13",
"@hmcts/rpx-xui-common-lib": "1.9.0-error-message-change",
"@hmcts/rpx-xui-common-lib": "1.9.0-address-inline-errors",
"@hmcts/rpx-xui-node-lib": "2.27.1",
"@ng-idle/core": "^10.0.0",
"@ng-idle/keepalive": "^10.0.0",
Expand All @@ -85,7 +85,7 @@
"@ngrx/store": "^11.1.1",
"@ngrx/store-devtools": "^11.1.1",
"@nicky-lenaers/ngx-scroll-to": "^9.0.0",
"@pact-foundation/pact": "^9.2.0",
"@pact-foundation/pact": "^9.11.1",
"@pact-foundation/pact-node": "^10.9.7",
"@rxweb/reactive-form-validators": "2.1.2",
"@types/crypto-js": "^3.1.43",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ <h3 class="govuk-heading-m">What's in these terms and conditions?</h3>
<ul class="govuk-list govuk-list--bullet">
<li><a class="govuk-link" href="{{TERMS_AND_CONDITIONS_REGISTER_OTHER_ORG_ROUTE}}#how-to-contact-us">Who we
are and how to contact us.</a></li>
<li><a class="govuk-link" href="{{TERMS_AND_CONDITIONS_REGISTER_OTHER_ORG_ROUTE}}#accept-these-terms">By using
our site you accept these terms.</a></li>
<li><a class="govuk-link" href="{{TERMS_AND_CONDITIONS_REGISTER_OTHER_ORG_ROUTE}}#accept-these-terms">You
accept these terms and conditions by using our site.</a></li>
<li><a class="govuk-link" href="{{TERMS_AND_CONDITIONS_REGISTER_OTHER_ORG_ROUTE}}#controllers-of-personal-data">
We are independent controllers of the personal data shared.</a></li>
<li><a class="govuk-link" href="{{TERMS_AND_CONDITIONS_REGISTER_OTHER_ORG_ROUTE}}#other-terms">There are other
terms that may apply to you.</a></li>
<li><a class="govuk-link" href="{{TERMS_AND_CONDITIONS_REGISTER_OTHER_ORG_ROUTE}}#change-to-these-terms">We
Expand All @@ -35,6 +37,8 @@ <h3 class="govuk-heading-m">What's in these terms and conditions?</h3>
must keep your account details safe.</a></li>
<li><a class="govuk-link" href="{{TERMS_AND_CONDITIONS_REGISTER_OTHER_ORG_ROUTE}}#materials-on-our-site">How
you may use material on our site.</a></li>
<li><a class="govuk-link" href="{{TERMS_AND_CONDITIONS_REGISTER_OTHER_ORG_ROUTE}}#web-scraping">No text or
data mining, or web scraping.</a></li>
<li><a class="govuk-link" href="{{TERMS_AND_CONDITIONS_REGISTER_OTHER_ORG_ROUTE}}#information-on-this-site">Do
not rely on information on our site.</a></li>
<li><a class="govuk-link" href="{{TERMS_AND_CONDITIONS_REGISTER_OTHER_ORG_ROUTE}}#websites-we-link-to">We are
Expand Down Expand Up @@ -66,7 +70,7 @@ <h3 class="govuk-heading-m" id="how-to-contact-us">Who we are and how to contact
<a class="govuk-link" target="_blank"
href="https://hmcts-access.service.gov.uk/login?client_id=xuiwebapp&redirect_uri=https://manage-case.platform.hmcts.net/oauth2/callback&state=0MCD1z9Wt38-SpaXfhA2QJGPjdPaamCM-Fn8MpGqolI&nonce=0_ZPmm6a9E89V174hyfYbnKbHb7jBL-bTQqOwSyEGH4&response_type=code&scope=profile openid roles manage-user create-user search-user&prompt=">
<i>MyHMCTS</i>
</a> is a site operated by His Majestys Courts and Tribunals Service ("We", "Our" or "Us").
</a> is a site operated by His Majesty's Courts and Tribunals Service ("We", "Our" or "Us").
</p>
<p class="govuk-body">Please <a class="govuk-link" href="mailto:[email protected]">contact us</a> if
you require further information.</p>
Expand All @@ -77,25 +81,26 @@ <h3 class="govuk-heading-m" id="accept-these-terms">You accept these terms and c
<p>If you do not agree to these terms, you must not use our site.</p>
<p>You are also responsible for ensuring that all persons who access our site through your account, and any
individual user accounts created by you, have read, understood and will abide by these terms and conditions and
other applicable terms and conditions such as our
<a class="govuk-link" target="_blank" href="https://hmcts-access.service.gov.uk/cookies">Cookie Policy
</a> and
<a class="govuk-link" target="_blank" href="https://hmcts-access.service.gov.uk/privacy-policy">Privacy Policy
</a>.
other applicable terms and conditions such as our
<a class="govuk-link" target="_blank" href="https://hmcts-access.service.gov.uk/cookies">Cookie Policy</a> and
<a class="govuk-link" target="_blank" href="https://hmcts-access.service.gov.uk/privacy-policy">Privacy Policy</a>.
</p>
<h3 class="govuk-heading-m" id="controllers-of-personal-data">We are independent controllers of the personal data shared
</h3>
<p class="govuk-body">You acknowledge that you are the controller of any shared personal data when it is in your
possession and that HMCTS is the controller of any shared personal data when it is in our possession.
</p>
<h3 class="govuk-heading-m" id="other-terms">There are other terms that may apply to you</h3>
<div class="govuk-body">
These terms of use refer to the following additional terms, which also apply to your use of our site:
<ul class="govuk-list govuk-list--bullet">
<li>
<a class="govuk-link" href="https://hmcts-access.service.gov.uk/privacy-policy" target="_blank">
Our Privacy Policy
</a>, which sets out how we may use your personal information.
Our Privacy Policy</a>, which sets out how we may use your personal information.
</li>
<li>
<a class="govuk-link" href="https://hmcts-access.service.gov.uk/cookies" target="_blank">
Our Cookie Policy
</a>, which sets out information about the cookies on our site.
Our Cookie Policy</a>, which sets out information about the cookies on our site.
</li>
</ul>
</div>
Expand Down Expand Up @@ -250,10 +255,9 @@ <h3 class="govuk-heading-m" id="uploading-content-to-our-site">Uploading content
<p class="govuk-body">Any content you upload to our site will be considered non-confidential and non-proprietary.
You retain all ownership rights in your content, but you grant us and other users of our site a limited licence
to use, store and copy that content and to distribute and make it available to third parties. The rights you
license to us are described in
<a class="govuk-link" href="{{TERMS_AND_CONDITIONS_REGISTER_OTHER_ORG_ROUTE}}#materials-on-our-site">
Rights you are giving us to use
material you upload</a>.</p>
license to us are described in
<a class="govuk-link" href="{{TERMS_AND_CONDITIONS_REGISTER_OTHER_ORG_ROUTE}}#materials-on-our-site">Rights you
are giving us to use material you upload</a>.</p>
<p class="govuk-body">We also have the right to disclose your identity to any third party who is claiming that any
content posted or uploaded by you to our site constitutes a violation of their intellectual property rights
or of their right to privacy.</p>
Expand Down Expand Up @@ -291,14 +295,13 @@ <h3 class="govuk-heading-m" id="linking-to-our-site">Rules about linking to our
<p class="govuk-body">Your right to link to our home page will cease immediately on the expiration or termination,
for any reason, of these terms and conditions.</p>
<p class="govuk-body">The website in which you are linking must comply in all respects with the content standards
<a class="govuk-link" href="{{TERMS_AND_CONDITIONS_REGISTER_OTHER_ORG_ROUTE}}#uploading-content-to-our-site">
set out here
</a>.</p>
<a class="govuk-link" href="{{TERMS_AND_CONDITIONS_REGISTER_OTHER_ORG_ROUTE}}#uploading-content-to-our-site">set
out here</a>.</p>
<p class="govuk-body">If you wish to link to or make any use of content on our site other than that set out above,
please <a class="govuk-link" href="mailto:[email protected]">contact us</a>.</p>
<h3 class="govuk-heading-m" id="dispute-laws">Which country's laws apply to any disputes?</h3>
<p class="govuk-body">Please note that these terms of use, their subject matter and their formation, are governed
by English law. You and we both agree that the courts of England and Wales will have exclusive jurisdiction.</p>
</div>
</div>
</main>
</main>
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ <h2 class="govuk-heading-m govuk-!-margin-top-8">Confirm your registration detai
<input class="govuk-checkboxes__input" type="checkbox" id="confirm-terms-and-conditions"
name="confirmTermsAndConditions" formControlName="confirmTermsAndConditions">
<label class="govuk-label govuk-checkboxes__label" for="confirm-terms-and-conditions">
You have read and understood the
You have read, understood and will abide by the
<a href="javascript:void(0)" target="_blank"
routerLink="/terms-and-conditions">terms and conditions</a>
and are eligible for an account to manage your organisation and cases
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ describe('CheckYourAnswersComponent', () => {
'PBA1234568'
],
services: [
'AAA7',
'ABA3'
{ key: 'AAA7', value: 'Damages' },
{ key: 'ABA3', value: 'Divorce' }
],
otherServices: 'test service',
contactDetails: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ export class CheckYourAnswersComponent extends RegisterComponent implements OnIn
this.cyaFormGroup = new FormGroup({
confirmTermsAndConditions: new FormControl(null, [Validators.required, this.getCustomValidationForTermsAndConditions()])
});

this.registrationData.services?.forEach((serviceKey) => {
const service = ORGANISATION_SERVICES.find((service) => service.key === serviceKey).value;
this.registrationData.services?.forEach((thisService) => {
const service = ORGANISATION_SERVICES.find((service) => service.key === thisService.key).value;
this.services.push(service);
});
if (this.registrationData.otherServices) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<a class="govuk-back-link" href="javascript:void(0)" (click)="onBack()">Back</a>
<xuilib-hmcts-error-summary [errorMessages]="validationErrors" [header]="'There is a problem'"></xuilib-hmcts-error-summary>
<span class="govuk-caption-xl">Register an organisation</span>
<h1 class="govuk-heading-xl">What is your company name and Companies House number?</h1>
<h1 class="govuk-heading-xl">What is your organisation name and Companies House number?</h1>
<hr>
<p class="govuk-hint">
If your company is registered with Companies House,
Expand All @@ -28,10 +28,10 @@ <h1 class="govuk-heading-xl">What is your company name and Companies House numbe
Enter the 8-digit Companies House Number (optional)
</label>
<div id="company-house-number-hint" class="govuk-hint">
This helps HMCTS to verify your company on our System
This helps HMCTS to verify your organisation on our system
</div>
<p class="govuk-error-message" *ngIf="companyNumberError">
<span class="govuk-visually-hidden">Error:</span> {{ companyNumberError.description }}
<span class="govuk-visually-hidden">Error:</span> {{ companyNumberError.message }}
</p>
<input class="govuk-input" id="company-house-number" name="companyHouseNumber" type="text"
formControlName="companyHouseNumber" aria-describedby="company-house-number-hint">
Expand All @@ -41,9 +41,8 @@ <h1 class="govuk-heading-xl">What is your company name and Companies House numbe
<button class="govuk-button" data-module="govuk-button" (click)="onContinue()">
Continue
</button>
<a class="govuk-link" href="javascript:void(0)" (click)="onCancel()">Cancel</a>
</div>

<a class="govuk-link" href="javascript:void(0)" (click)="onCancel()">Cancel</a>
</form>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,27 @@ describe('CompanyHouseDetailsComponent', () => {
component.companyHouseFormGroup.get('companyName').setValue(null);
component.onContinue();
expect(component.companyNameError).toEqual(companyNameError);
expect(component.validationErrors.length).toEqual(1);
});

it('should set the error message if company number is invalid', () => {
const companyNumberError = { id: 'company-house-number', message: CompanyHouseDetailsMessage.INVALID_COMPANY_NUMBER };
component.companyHouseFormGroup.get('companyName').setValue('Company Name');
component.companyHouseFormGroup.get('companyHouseNumber').setValue('1234');
component.onContinue();
expect(component.companyNumberError).toEqual(companyNumberError);
expect(component.validationErrors.length).toEqual(1);
});

it('should set the error message if company name is null and company number is invalid', () => {
const companyNameError = { id: 'company-name', message: CompanyHouseDetailsMessage.NO_ORG_NAME };
const companyNumberError = { id: 'company-house-number', message: CompanyHouseDetailsMessage.INVALID_COMPANY_NUMBER };
component.companyHouseFormGroup.get('companyName').setValue(null);
component.companyHouseFormGroup.get('companyHouseNumber').setValue('1234');
component.onContinue();
expect(component.companyNameError).toEqual(companyNameError);
expect(component.companyNumberError).toEqual(companyNumberError);
expect(component.validationErrors.length).toEqual(2);
});

it('should navigate the next page if values are correct', () => {
Expand All @@ -61,6 +75,9 @@ describe('CompanyHouseDetailsComponent', () => {
component.onContinue();
expect(component.registrationData.companyName).toEqual('Company Name');
expect(component.registrationData.companyHouseNumber).toEqual('12345678');
expect(component.companyNameError).toBeNull();
expect(component.companyNumberError).toBeNull();
expect(component.validationErrors.length).toEqual(0);
expect(router.navigate).toHaveBeenCalledWith(['register-org-new', 'registered-address', 'external']);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export class CompanyHouseDetailsComponent extends RegisterComponent implements O

private validateForm(): boolean {
this.validationErrors = [];

this.companyNameError = null;
this.companyNumberError = null;
if (this.companyHouseFormGroup.invalid) {
if (this.companyHouseFormGroup.get('companyName').invalid) {
this.companyNameError = { id: 'company-name', message: CompanyHouseDetailsMessage.NO_ORG_NAME };
Expand Down
Loading