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-8764 Common Lib - Accessibility fixes #1165

Open
wants to merge 212 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
212 commits
Select commit Hold shift + click to select a range
b73006d
PBA validation
Sep 12, 2023
3d8fde9
Display Error summary page
Sep 13, 2023
c839067
form Error
Sep 13, 2023
bc04d20
EUI-8801 Register other org - Contact details functionality
johnbenjamin-hmcts Sep 13, 2023
8628090
EUI-8801 Register other org - Contact details functionality
johnbenjamin-hmcts Sep 14, 2023
dcb5d0d
Add validation
DavidJayakumar Sep 14, 2023
a11ec9f
EUI-8801 Register other org - Contact details functionality
johnbenjamin-hmcts Sep 14, 2023
1647a90
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
johnbenjamin-hmcts Sep 14, 2023
894520c
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Sep 14, 2023
bf73fec
fix lint
DavidJayakumar Sep 14, 2023
6d117cb
EUI-8811 Register other org - Individual regulator yes no functionality
johnbenjamin-hmcts Sep 14, 2023
0bfa93d
EUI-8801 Register other org - Contact details functionality
johnbenjamin-hmcts Sep 14, 2023
90e4198
EUI-8811 Register other org - Individual regulator yes no functionality
johnbenjamin-hmcts Sep 14, 2023
d831211
Update contact-details.component.spec.ts
johnbenjamin-hmcts Sep 14, 2023
7eab739
Fix test
DavidJayakumar Sep 14, 2023
1736497
EUI-8811 Register other org - Individual regulator yes no functionality
johnbenjamin-hmcts Sep 15, 2023
722fb22
Add validation
DavidJayakumar Sep 15, 2023
8545e7f
Add non-postcode validation and persistence
connorpgpmcelroy Sep 15, 2023
6e55b75
Merge remote-tracking branch 'origin/feature/Register-Other-Org-Sprin…
connorpgpmcelroy Sep 15, 2023
8199f86
Merge branch 'feature/Register-Other-Org-Sprint-31.3' into feature/EU…
udaydenduluri33 Sep 18, 2023
28c0911
EUI-8797 Register other org - CYA display amendments
johnbenjamin-hmcts Sep 18, 2023
04371c8
Fix merge conflicts
connorpgpmcelroy Sep 18, 2023
9505264
Update registered-address.component.spec.ts
connorpgpmcelroy Sep 18, 2023
1c6f2d0
PBA number persist functionality
Sep 18, 2023
de20a49
fix unit tests
Sep 18, 2023
85f955a
Make changes based on PR comments
connorpgpmcelroy Sep 18, 2023
0c82fbb
Merge pull request #1097 from hmcts/feature/EUI-8811-Register-other-o…
johnbenjamin-hmcts Sep 18, 2023
5204544
EUI-8797 Register other org - CYA display amendments
johnbenjamin-hmcts Sep 19, 2023
0740990
Merge pull request #1096 from hmcts/feature/EUI-8801-Register-other-o…
johnbenjamin-hmcts Sep 19, 2023
805aed0
Merge branch 'master' into feature/Register-Other-Org-Sprint-31.4
johnbenjamin-hmcts Sep 19, 2023
66293d5
Update contact-details.component.spec.ts
johnbenjamin-hmcts Sep 19, 2023
7ed583a
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
johnbenjamin-hmcts Sep 19, 2023
d77a3fb
Add service down check
DavidJayakumar Sep 19, 2023
9603465
Merge branch 'feature/Register-Other-Org-Sprint-31.4' into feature/EU…
DavidJayakumar Sep 19, 2023
11c1e6d
EUI-8797 Register other org - CYA display amendments
johnbenjamin-hmcts Sep 19, 2023
208556e
EUI-8797 Register other org - CYA display amendments
johnbenjamin-hmcts Sep 19, 2023
1aed444
EUI-8797 Register other org - CYA display amendments
johnbenjamin-hmcts Sep 19, 2023
566e760
Merge pull request #1095 from hmcts/feature/EUI-8777
DavidJayakumar Sep 19, 2023
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
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
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
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
651265a
Merge pull request #1153 from hmcts/bug/EUI-8928-ROO-CYA-page-correct…
johnbenjamin-hmcts Oct 25, 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
7a222c8
Fix test failure
johnbenjamin-hmcts Oct 27, 2023
9d01135
Make error message changes (#1161)
connorpgpmcelroy Oct 27, 2023
039a025
EUI-8764 CommonLib accessibility fixes
johnbenjamin-hmcts Oct 27, 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
2 changes: 1 addition & 1 deletion 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-route-expected-feature-2",
"@hmcts/rpx-xui-common-lib": "1.9.1-accessibility-fixes-v2",
"@hmcts/rpx-xui-node-lib": "2.27.1",
"@ng-idle/core": "^10.0.0",
"@ng-idle/keepalive": "^10.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ describe('HmctsGlobalHeaderComponent', () => {
component.headerTitle = { ...component.headerTitle, hideBranding: false };
fixture.detectChanges();
const headerTitle = fixture.debugElement.nativeElement.querySelector('.govuk-header__logotype-text');
expect(headerTitle).toBeDefined();
expect(headerTitle).not.toBeNull();
expect(headerTitle.textContent).toContain('MyHMCTS');
expect(component.headerTitle.hideBranding).toBeFalsy();
Expand Down
3 changes: 1 addition & 2 deletions src/app/containers/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<xuilib-cookie-banner
<xuilib-cookie-banner
[identifier]="cookieName"
[appName]="'MyHMCTS'"
*ngIf="isCookieBannerVisible"
Expand All @@ -8,7 +8,6 @@

<a [routerLink]="" fragment="{{mainContentId}}" class="govuk-skip-link" (click)="onFocusMainContent()">Skip to main content</a>
<app-loader></app-loader>
<title>{{pageTitle$ | async}}</title>

<app-header
[navItems]="navItems$ | async"
Expand Down
20 changes: 13 additions & 7 deletions src/app/containers/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Component, Inject, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { CookieService, FeatureToggleService, FeatureUser, GoogleAnalyticsService, ManageSessionServices } from '@hmcts/rpx-xui-common-lib';
import { select, Store } from '@ngrx/store';
import { Store, select } from '@ngrx/store';
import { Observable, Subscription } from 'rxjs';
import { LoggerService } from '../../../shared/services/logger.service';

import { AppConstants } from '../../../app/app.constants';
import { EnvironmentConfig, ENVIRONMENT_CONFIG } from '../../../models/environmentConfig.model';
import { ENVIRONMENT_CONFIG, EnvironmentConfig } from '../../../models/environmentConfig.model';
import { HeadersService } from '../../../shared/services/headers.service';
import { LoggerService } from '../../../shared/services/logger.service';
import { UserService } from '../../../user-profile/services/user.service';
import * as fromUserProfile from '../../../user-profile/store';
import { AppTitlesModel } from '../../models/app-titles.model';
Expand Down Expand Up @@ -40,6 +40,7 @@ export class AppComponent implements OnInit, OnDestroy {
public cookieName;
public isCookieBannerVisible: boolean = false;
private cookieBannerEnabledSubscription: Subscription;
private pageTitleSubscription: Subscription;

private cookieBannerEnabled: boolean = false;
constructor(
Expand All @@ -52,6 +53,7 @@ export class AppComponent implements OnInit, OnDestroy {
private readonly idleService: ManageSessionServices,
private readonly loggerService: LoggerService,
private readonly cookieService: CookieService,
private titleService: Title
) {}

public ngOnInit(): void {
Expand All @@ -73,6 +75,11 @@ export class AppComponent implements OnInit, OnDestroy {
this.store.dispatch(new fromRoot.SetPageTitle(rootState.state.url));
}
});

this.pageTitleSubscription = this.pageTitle$.subscribe((title) => {
this.titleService.setTitle(title? title : 'Manage organisation');
});

if (this.headersService.isAuthenticated()) {
this.userService.getUserDetails().subscribe((user) => {
const featureUser: FeatureUser = {
Expand All @@ -97,9 +104,8 @@ export class AppComponent implements OnInit, OnDestroy {
}

public ngOnDestroy(): void {
if (this.cookieBannerEnabledSubscription) {
this.cookieBannerEnabledSubscription.unsubscribe();
}
this.cookieBannerEnabledSubscription?.unsubscribe();
this.pageTitleSubscription?.unsubscribe();
}

public handleCookieBannerFeatureToggle(): void {
Expand Down
2 changes: 1 addition & 1 deletion src/app/containers/redirect/redirect.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ describe('AppRedirectComponent', () => {
});

it('should have redirect property ', () => {
expect(app.redirected).toBeDefined();
expect(app.redirected).toBe(false);
});
});
226 changes: 179 additions & 47 deletions src/app/utils/app-utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { LovRefDataModel } from 'src/shared/models/lovRefData.model';
import { propsExist } from '../../../api/lib/objectUtilities';
import { AppConstants } from '../app.constants';
import { AppFeatureFlag } from '../store/reducers/app.reducer';
Expand Down Expand Up @@ -89,64 +90,131 @@ describe('AppUtils', () => {
expect(array).toEqual(state.userNav);
});

it('should set correct page titles', () => {
const array = AppUtils.setPageTitle('invite-users');
expect(array).toEqual('Invite user - Manage organisation');
});
describe('Page title', () => {
it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org-new/register');
expect(array).toEqual('Register - Register organisation');
});

it('should set correct page titles', () => {
const array = AppUtils.setPageTitle('organisation-name');
expect(array).toEqual('Organisation name - Register organisation');
});
it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org-new/organisation-type');
expect(array).toEqual('Organisation type - Register organisation');
});

it('should set correct page titles', () => {
const array = AppUtils.setPageTitle('organisation-address');
expect(array).toEqual('Organisation address - Register organisation');
});
it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org-new/company-house-details');
expect(array).toEqual('Company house details - Register organisation');
});

it('should set correct page titles', () => {
const array = AppUtils.setPageTitle('organisation-pba');
expect(array).toEqual('PBA - Register organisation');
});
it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org-new/document-exchange-reference');
expect(array).toEqual('Document exchange reference - Register organisation');
});

it('should set correct page titles', () => {
const array = AppUtils.setPageTitle('have-dx');
expect(array).toEqual('DX - Register organisation');
});
it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org-new/regulatory-organisation-type');
expect(array).toEqual('Organisation regulators - Register organisation');
});

it('should set correct page titles', () => {
const array = AppUtils.setPageTitle('organisation-dx');
expect(array).toEqual('DX reference - Register organisation');
});
it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org-new/organisation-services-access');
expect(array).toEqual('Services to access - Register organisation');
});

it('should set correct page titles', () => {
const array = AppUtils.setPageTitle('haveSra');
expect(array).toEqual('SRA - Register organisation');
});
it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org-new/payment-by-account');
expect(array).toEqual('Payment by account - Register organisation');
});

it('should set correct page titles', () => {
const array = AppUtils.setPageTitle('sraNumber');
expect(array).toEqual('SRA number - Register organisation');
});
it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org-new/individual-registered-with-regulator');
expect(array).toEqual('Individual regulators - Register organisation');
});

it('should set correct page titles', () => {
const array = AppUtils.setPageTitle('name');
expect(array).toEqual('Name - Register organisation');
});
it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org-new/check-your-answers');
expect(array).toEqual('Check your answers - Register organisation');
});

it('should set correct page titles', () => {
const array = AppUtils.setPageTitle('email-address');
expect(array).toEqual('Email - Register organisation');
});
it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org/register/organisation-name');
expect(array).toEqual('Organisation name - Register organisation');
});

it('should set correct page titles', () => {
const array = AppUtils.setPageTitle('check');
expect(array).toEqual('Check answers - Register organisation');
});
it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org/register/organisation-address');
expect(array).toEqual('Organisation address - Register organisation');
});

it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org/register/organisation-pba');
expect(array).toEqual('PBA - Register organisation');
});

it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org/register/organisation-have-dx');
expect(array).toEqual('DX - Register organisation');
});

it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org/register/organisation-dx');
expect(array).toEqual('DX reference - Register organisation');
});

it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org/register/haveSra');
expect(array).toEqual('SRA - Register organisation');
});

it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org/register/sraNumber');
expect(array).toEqual('SRA number - Register organisation');
});

it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org/register/name');
expect(array).toEqual('Name - Register organisation');
});

it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org/register/email-address');
expect(array).toEqual('Email - Register organisation');
});

it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org/register/check');
expect(array).toEqual('Check answers - Register organisation');
});

it('should set correct page title', () => {
const array = AppUtils.setPageTitle('register-org/register');
expect(array).toEqual('Register - Register organisation');
});

it('should set correct page title', () => {
const array = AppUtils.setPageTitle('invite-users');
expect(array).toEqual('Invite user - Manage organisation');
});

it('should set correct page title', () => {
const array = AppUtils.setPageTitle('organisation');
expect(array).toEqual('Organisation details - Manage organisation');
});

it('should set correct page titles', () => {
const array = AppUtils.setPageTitle('register-org/register');
expect(array).toEqual('Register - Register organisation');
it('should set correct page title', () => {
const array = AppUtils.setPageTitle('users');
expect(array).toEqual('Users - Manage organisation');
});

it('should set correct page title', () => {
const array = AppUtils.setPageTitle('unassigned-cases');
expect(array).toEqual('Unassigned cases - Manage organisation');
});

it('should set correct page title', () => {
const array = AppUtils.setPageTitle('assigned-cases');
expect(array).toEqual('Assigned cases - Manage organisation');
});
});

it('should switch title', () => {
Expand Down Expand Up @@ -360,4 +428,68 @@ describe('AppUtils', () => {
const result = AppUtils.findLastIndex(htmlComponentArray2, predicate);
expect(result).toEqual(-1);
});

describe('setOtherAsLastOption', () => {
let itmes: LovRefDataModel[];
let other: LovRefDataModel;

beforeEach(() => {
itmes = [
{
active_flag: 'Y',
category_key: 'Org',
child_nodes: null,
hint_text_cy: '',
hint_text_en: '',
key: 'DEFENCE',
lov_order: null,
parent_category: '',
parent_key: '',
value_cy: '',
value_en: 'Defence'
},
{
active_flag: 'Y',
category_key: 'Org',
child_nodes: null,
hint_text_cy: '',
hint_text_en: '',
key: 'CHARITY',
lov_order: null,
parent_category: '',
parent_key: '',
value_cy: '',
value_en: 'Charity'
}
];

other = {
active_flag: '',
category_key: '',
hint_text_cy: '',
hint_text_en: '',
key: 'OTHER',
lov_order: null,
parent_category: '',
parent_key: '',
value_cy: '',
value_en: 'Other',
child_nodes: null
};
});

it('should set Other as last option if not available in the input list', () => {
const itemsWithOther = AppUtils.setOtherAsLastOption(itmes);
itmes.push(other);
expect(itemsWithOther).toEqual(itmes);
expect(itemsWithOther[itemsWithOther.length - 1]).toEqual(other);
});

it('should move other to the last position if it is available in the input list', () => {
itmes.splice(1, 0, other);
const itemsWithOther = AppUtils.setOtherAsLastOption(itmes);
expect(itemsWithOther).toBe(itmes);
expect(itemsWithOther[itemsWithOther.length - 1]).toEqual(other);
});
});
});
Loading