The service frontend and first point of contact for individual and representative users. This is where they first access the service and are prompted to submit a number or questions regarding their and their hearing suitability as in terms of video hearings.
They will then, once submitted, be redirected to the vh-video-web.
- Install the report generator dotnet tool https://www.nuget.org/packages/dotnet-reportgenerator-globaltool/
You may need to restart your prompt to get the updated path.
-
CD into the
ServiceWebsite
folder -
Run the command for windows or osx
./run_coverage.sh
orrun_coverage.bat
The coverage report will open automatically after run, joining the results for both integration and unit tests.
If the interface for either the MVC or the Bookings API is updated these can be rebuilt using the following commands:
In the ServiceWebsite/ClientApp
folder:
npx nswag run api-ts.nswag
In the ServiceWebsite.UserAPI.Client
project:
npx nswag run user-api-csharp.nswag
In the ServiceWebsite.BookingsAPI.Client
project:
npx nswag run booking-api-csharp.nswag
In the ClientApp
folder run node accessibility_lint.js
. Will output a json with any issues.
#Localization
In html files, for localised text, set attribute 'i18n' for element or attribute with a unique identifier like i18n="@@customerId"
.
For inner text:
<p i18n="@@useCameraMicrophone_p_1">Switch on camera.</p>
For attribute:
<input value="Continue" i18n-value="@@useCameraMicrophone_btn_continue" type="button" />
For custom inputs/attribute, you have to use the canonical binding form:
<app-details [detailsTitle]="titleVariable"><app-details>
Would be:
<app-details bind-detailsTitle="titleVariable" i18n-bind-details="@@detailsTitle><app-details>
Create a translation source file in the ServiceWebsite/ClientApp
folder:
ng xi18n --output-path translate
It will create folder 'translate' and source file 'messages.xlf'