diff --git a/src/constants.ts b/src/constants.ts index 58041064..f584bc5e 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -13,12 +13,7 @@ export const Urls = { PERSONAL_CODE: `${urlWithTransactionIdAndSubmissionId}/individual/personal-code`, INDIVIDUAL_STATEMENT: `${urlWithTransactionIdAndSubmissionId}/individual/psc-statement`, PSC_VERIFIED: `${urlWithTransactionIdAndSubmissionId}/psc-verified`, - RLE_LIST: `${urlWithTransactionIdAndSubmissionId}/rle/rle-list`, - RLE_DETAILS: "/rle/ro-details", - RLE_DIRECTOR: "/rle/ro-director", - CONFIRM_RO_STATEMENTS: "/rle/ro-statements", - NOT_A_DIRECTOR: "/rle/not-director-stop", - RLE_VERIFIED: "/rle/rle-verified" + RLE_LIST: `${urlWithTransactionIdAndSubmissionId}/rle/rle-list` } as const; export const PrefixedUrls = { @@ -34,11 +29,6 @@ export const PrefixedUrls = { INDIVIDUAL_STATEMENT: servicePathPrefix + Urls.INDIVIDUAL_STATEMENT, PSC_VERIFIED: servicePathPrefix + Urls.PSC_VERIFIED, RLE_LIST: servicePathPrefix + Urls.RLE_LIST, - RLE_DETAILS: servicePathPrefix + Urls.RLE_DETAILS, - RLE_DIRECTOR: servicePathPrefix + Urls.RLE_DIRECTOR, - CONFIRM_RO_STATEMENTS: servicePathPrefix + Urls.CONFIRM_RO_STATEMENTS, - NOT_A_DIRECTOR: servicePathPrefix + Urls.NOT_A_DIRECTOR, - RLE_VERIFIED: servicePathPrefix + Urls.RLE_VERIFIED, COOKIES: "/help/cookies" } as const; diff --git a/src/routerDispatch.ts b/src/routerDispatch.ts index 455b5f9a..88a74653 100644 --- a/src/routerDispatch.ts +++ b/src/routerDispatch.ts @@ -1,7 +1,7 @@ // Do Router dispatch here, i.e. map incoming routes to appropriate router import { Application, Request, Response, Router } from "express"; import { Urls, servicePathPrefix } from "./constants"; -import { CompanyNumberRouter, ConfirmCompanyRouter, ConfirmRoStatementsRouter, HealthCheckRouter, IndividualPscListRouter, IndividualStatementRouter, NewSubmissionRouter, NotADirectorRouter, PersonalCodeRouter, PscTypeRouter, PscVerifiedRouter, RleDetailsRouter, RleDirectorRouter, RlePscListRouter, RleVerifiedRouter, StartRouter } from "./routers/utils"; +import { CompanyNumberRouter, ConfirmCompanyRouter, HealthCheckRouter, IndividualPscListRouter, IndividualStatementRouter, NewSubmissionRouter, PersonalCodeRouter, PscTypeRouter, PscVerifiedRouter, RlePscListRouter, StartRouter } from "./routers/utils"; import { authenticate } from "./middleware/authentication"; import { fetchVerification } from "./middleware/fetchVerification"; import { fetchCompany } from "./middleware/fetchCompany"; @@ -24,11 +24,6 @@ const routerDispatch = (app: Application) => { router.use(Urls.INDIVIDUAL_STATEMENT, authenticate, fetchVerification, IndividualStatementRouter); router.use(Urls.PSC_VERIFIED, authenticate, fetchVerification, fetchCompany, PscVerifiedRouter); router.use(Urls.RLE_LIST, authenticate, RlePscListRouter); - router.use(Urls.RLE_DETAILS, authenticate, RleDetailsRouter); - router.use(Urls.RLE_DIRECTOR, authenticate, RleDirectorRouter); - router.use(Urls.CONFIRM_RO_STATEMENTS, authenticate, ConfirmRoStatementsRouter); - router.use(Urls.NOT_A_DIRECTOR, authenticate, NotADirectorRouter); - router.use(Urls.RLE_VERIFIED, authenticate, RleVerifiedRouter); router.use("*", (req: Request, res: Response) => { res.status(404).render("partials/error_400"); diff --git a/src/routers/confirmRoStatementsRouter.ts b/src/routers/confirmRoStatementsRouter.ts deleted file mode 100644 index dfe2dd5f..00000000 --- a/src/routers/confirmRoStatementsRouter.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Request, Response, Router } from "express"; -import { handleExceptions } from "../utils/asyncHandler"; -import { ConfirmRoStatementsHandler } from "./handlers/confirm-ro-statements/confirmRoStatements"; - -const confirmRoStatementsRouter: Router = Router({ mergeParams: true }); - -confirmRoStatementsRouter.get("/", handleExceptions(async (req: Request, res: Response) => { - const handler = new ConfirmRoStatementsHandler(); - const { templatePath, viewData } = await handler.executeGet(req, res); - res.render(templatePath, viewData); -})); - -export default confirmRoStatementsRouter; diff --git a/src/routers/handlers/confirm-ro-statements/confirmRoStatements.ts b/src/routers/handlers/confirm-ro-statements/confirmRoStatements.ts deleted file mode 100644 index a865dbd2..00000000 --- a/src/routers/handlers/confirm-ro-statements/confirmRoStatements.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Request, Response } from "express"; -import { PrefixedUrls } from "../../../constants"; -import { logger } from "../../../lib/logger"; -import { getLocaleInfo, getLocalesService, selectLang } from "../../../utils/localise"; -import { - BaseViewData, - GenericHandler, - ViewModel -} from "../generic"; - -interface RleListViewData extends BaseViewData { - -} - -export class ConfirmRoStatementsHandler extends GenericHandler { - - private static templatePath = "router_views/confirmRoStatements/confirmRoStatements"; - - public async getViewData (req: Request, res: Response): Promise { - - const baseViewData = await super.getViewData(req, res); - - const lang = selectLang(req.query.lang); - const locales = getLocalesService(); - - return { - ...baseViewData, - ...getLocaleInfo(locales, lang), - title: "Verification statements", - currentUrl: PrefixedUrls.CONFIRM_RO_STATEMENTS + "?lang=" + lang, - backURL: PrefixedUrls.RLE_DIRECTOR + "?lang=" + lang - }; - } - - public async executeGet (req: Request, res: Response): Promise> { - logger.info(`${ConfirmRoStatementsHandler.name} - ${this.executeGet.name} called for transaction: ${req.params?.transactionId}`); - const viewData = await this.getViewData(req, res); - - return { - templatePath: ConfirmRoStatementsHandler.templatePath, - viewData - }; - } -} diff --git a/src/routers/handlers/not-a-director/notADirector.ts b/src/routers/handlers/not-a-director/notADirector.ts deleted file mode 100644 index f9588050..00000000 --- a/src/routers/handlers/not-a-director/notADirector.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Request, Response } from "express"; -import { PrefixedUrls } from "../../../constants"; -import { logger } from "../../../lib/logger"; -import { getLocaleInfo, getLocalesService, selectLang } from "../../../utils/localise"; -import { - BaseViewData, - GenericHandler, - ViewModel -} from "../generic"; - -interface NotADirectorViewData extends BaseViewData { - -} - -export class NotADirectorHandler extends GenericHandler { - - private static templatePath = "router_views/not_a_director/not_a_director"; - - public async getViewData (req: Request, res: Response): Promise { - - const baseViewData = await super.getViewData(req, res); - - const lang = selectLang(req.query.lang); - const locales = getLocalesService(); - - return { - ...baseViewData, - ...getLocaleInfo(locales, lang), - title: "Psc Verified", - currentUrl: PrefixedUrls.NOT_A_DIRECTOR + "?lang=" + lang, - backURL: PrefixedUrls.RLE_DIRECTOR + "?lang=" + lang - }; - } - - public async executeGet (req: Request, res: Response): Promise> { - logger.info(`${NotADirectorHandler.name} - ${this.executeGet.name} called for transaction: ${req.params?.transactionId}`); - const viewData = await this.getViewData(req, res); - - return { - templatePath: NotADirectorHandler.templatePath, - viewData - }; - } -} diff --git a/src/routers/handlers/rle-details/rleDetails.ts b/src/routers/handlers/rle-details/rleDetails.ts deleted file mode 100644 index 9bcd4b8f..00000000 --- a/src/routers/handlers/rle-details/rleDetails.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Request, Response } from "express"; -import { PrefixedUrls } from "../../../constants"; -import { logger } from "../../../lib/logger"; -import { getLocaleInfo, getLocalesService, selectLang } from "../../../utils/localise"; -import { - BaseViewData, - GenericHandler, - ViewModel -} from "../generic"; - -interface RleListViewData extends BaseViewData { - -} - -export class RleDetailsHandler extends GenericHandler { - - private static templatePath = "router_views/rleDetails/rleDetails"; - - public async getViewData (req: Request, res: Response): Promise { - - const baseViewData = await super.getViewData(req, res); - - const lang = selectLang(req.query.lang); - const locales = getLocalesService(); - - return { - ...baseViewData, - ...getLocaleInfo(locales, lang), - title: "Rle Details", - currentUrl: PrefixedUrls.RLE_DETAILS + "?lang=" + lang, - backURL: PrefixedUrls.RLE_LIST + "?lang=" + lang - }; - } - - public async executeGet (req: Request, res: Response): Promise> { - logger.info(`${RleDetailsHandler.name} - ${this.executeGet.name} called for transaction: ${req.params?.transactionId} and submissionId: ${req.params?.submissionId}`); - const viewData = await this.getViewData(req, res); - - return { - templatePath: RleDetailsHandler.templatePath, - viewData - }; - } -} diff --git a/src/routers/handlers/rle-director/rleDirector.ts b/src/routers/handlers/rle-director/rleDirector.ts deleted file mode 100644 index aa9cb1cc..00000000 --- a/src/routers/handlers/rle-director/rleDirector.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Request, Response } from "express"; -import { PrefixedUrls } from "../../../constants"; -import { logger } from "../../../lib/logger"; -import { getLocaleInfo, getLocalesService, selectLang } from "../../../utils/localise"; -import { - BaseViewData, - GenericHandler, - ViewModel -} from "../generic"; - -interface RleListViewData extends BaseViewData { - -} - -export class RleDirectorHandler extends GenericHandler { - - private static templatePath = "router_views/rle-director/rleDirector"; - - public async getViewData (req: Request, res: Response): Promise { - - const baseViewData = await super.getViewData(req, res); - - const lang = selectLang(req.query.lang); - const locales = getLocalesService(); - - return { - ...baseViewData, - ...getLocaleInfo(locales, lang), - title: "Are They A Director?", - currentUrl: PrefixedUrls.RLE_DIRECTOR + "?lang=" + lang, - backURL: PrefixedUrls.RLE_DETAILS + "?lang=" + lang - }; - } - - public async executeGet (req: Request, res: Response): Promise> { - logger.info(`${RleDirectorHandler.name} - ${this.executeGet.name} called for transaction: ${req.params?.transactionId} and submissionId: ${req.params?.submissionId}`); - const viewData = await this.getViewData(req, res); - - return { - templatePath: RleDirectorHandler.templatePath, - viewData - }; - } -} diff --git a/src/routers/handlers/rle-verified/rleVerified.ts b/src/routers/handlers/rle-verified/rleVerified.ts deleted file mode 100644 index d52f5d8b..00000000 --- a/src/routers/handlers/rle-verified/rleVerified.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Request, Response } from "express"; -import { PrefixedUrls } from "../../../constants"; -import { logger } from "../../../lib/logger"; -import { getLocaleInfo, getLocalesService, selectLang } from "../../../utils/localise"; -import { - BaseViewData, - GenericHandler, - ViewModel -} from "../generic"; - -interface RleVerifiedViewData extends BaseViewData { - -} - -export class RleVerifiedHandler extends GenericHandler { - - private static templatePath = "router_views/rle_verified/rleVerified"; - - public async getViewData (req: Request, res: Response): Promise { - - const baseViewData = await super.getViewData(req, res); - - const lang = selectLang(req.query.lang); - const locales = getLocalesService(); - - return { - ...baseViewData, - ...getLocaleInfo(locales, lang), - title: "PSC confirmed", - currentUrl: PrefixedUrls.RLE_VERIFIED + "?lang=" + lang, - backURL: PrefixedUrls.CONFIRM_RO_STATEMENTS + "?lang=" + lang - }; - } - - public async executeGet (req: Request, res: Response): Promise> { - logger.info(`${RleVerifiedHandler.name} - ${this.executeGet.name} called for transaction: ${req.params?.transactionId} and submissionId: ${req.params?.submissionId}`); - const viewData = await this.getViewData(req, res); - - return { - templatePath: RleVerifiedHandler.templatePath, - viewData - }; - } -} diff --git a/src/routers/notADirectorRouter.ts b/src/routers/notADirectorRouter.ts deleted file mode 100644 index bdd1e3e5..00000000 --- a/src/routers/notADirectorRouter.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Request, Response, Router } from "express"; -import { handleExceptions } from "../utils/asyncHandler"; -import { NotADirectorHandler } from "./handlers/not-a-director/notADirector"; - -const notADirectorRouter: Router = Router({ mergeParams: true }); - -notADirectorRouter.get("/", handleExceptions(async (req: Request, res: Response) => { - const handler = new NotADirectorHandler(); - const { templatePath, viewData } = await handler.executeGet(req, res); - res.render(templatePath, viewData); -})); - -export default notADirectorRouter; diff --git a/src/routers/rleDetailsRouter.ts b/src/routers/rleDetailsRouter.ts deleted file mode 100644 index 224e46bc..00000000 --- a/src/routers/rleDetailsRouter.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Request, Response, Router } from "express"; -import { handleExceptions } from "../utils/asyncHandler"; -import { RleDetailsHandler } from "./handlers/rle-details/rleDetails"; - -const rleDetailsRouter: Router = Router({ mergeParams: true }); - -rleDetailsRouter.get("/", handleExceptions(async (req: Request, res: Response) => { - const handler = new RleDetailsHandler(); - const { templatePath, viewData } = await handler.executeGet(req, res); - res.render(templatePath, viewData); -})); - -export default rleDetailsRouter; diff --git a/src/routers/rleDirectorRouter.ts b/src/routers/rleDirectorRouter.ts deleted file mode 100644 index 14a815fd..00000000 --- a/src/routers/rleDirectorRouter.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Request, Response, Router } from "express"; -import { handleExceptions } from "../utils/asyncHandler"; -import { RleDirectorHandler } from "./handlers/rle-director/rleDirector"; - -const rleDirectorRouter: Router = Router({ mergeParams: true }); - -rleDirectorRouter.get("/", handleExceptions(async (req: Request, res: Response) => { - const handler = new RleDirectorHandler(); - const { templatePath, viewData } = await handler.executeGet(req, res); - res.render(templatePath, viewData); -})); - -export default rleDirectorRouter; diff --git a/src/routers/rleVerifiedRouter.ts b/src/routers/rleVerifiedRouter.ts deleted file mode 100644 index a213cdbc..00000000 --- a/src/routers/rleVerifiedRouter.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Request, Response, Router } from "express"; -import { handleExceptions } from "../utils/asyncHandler"; -import { RleVerifiedHandler } from "./handlers/rle-verified/rleVerified"; - -const rleVerifiedRouter: Router = Router({ mergeParams: true }); - -rleVerifiedRouter.get("/", handleExceptions(async (req: Request, res: Response) => { - const handler = new RleVerifiedHandler(); - const { templatePath, viewData } = await handler.executeGet(req, res); - res.render(templatePath, viewData); -})); - -export default rleVerifiedRouter; diff --git a/src/routers/utils/index.ts b/src/routers/utils/index.ts index 1f25d496..0e427fd9 100644 --- a/src/routers/utils/index.ts +++ b/src/routers/utils/index.ts @@ -9,13 +9,9 @@ import PersonalCodeRouter from "../personalCodeRouter"; import IndividualStatementRouter from "../individualStatementRouter"; import PscVerifiedRouter from "./../pscVerifiedRouter"; import RlePscListRouter from "./../rlePscListRouter"; -import RleDetailsRouter from "./../rleDetailsRouter"; -import RleDirectorRouter from "./../rleDirectorRouter"; -import ConfirmRoStatementsRouter from "./../confirmRoStatementsRouter"; -import NotADirectorRouter from "./../notADirectorRouter"; -import RleVerifiedRouter from "./../rleVerifiedRouter"; + import { logger } from "../../lib/logger"; -export { StartRouter, HealthCheckRouter, CompanyNumberRouter, ConfirmCompanyRouter, PscTypeRouter, IndividualPscListRouter, PersonalCodeRouter, IndividualStatementRouter, NewSubmissionRouter, NotADirectorRouter, PscVerifiedRouter, RlePscListRouter, RleDetailsRouter, RleDirectorRouter, RleVerifiedRouter, ConfirmRoStatementsRouter }; +export { StartRouter, HealthCheckRouter, CompanyNumberRouter, ConfirmCompanyRouter, PscTypeRouter, IndividualPscListRouter, PersonalCodeRouter, IndividualStatementRouter, NewSubmissionRouter, PscVerifiedRouter, RlePscListRouter }; export function formatDateBorn (dateOfBirth: any, lang: string): string { try { diff --git a/src/views/router_views/confirmRoStatements/confirmRoStatements.njk b/src/views/router_views/confirmRoStatements/confirmRoStatements.njk deleted file mode 100644 index dac8f424..00000000 --- a/src/views/router_views/confirmRoStatements/confirmRoStatements.njk +++ /dev/null @@ -1,43 +0,0 @@ -{% extends "layouts/default.njk" %} - -{% from "govuk/components/checkboxes/macro.njk" import govukCheckboxes %} -{% from "govuk/components/button/macro.njk" import govukButton %} - -{% block main_content %} - - - [first] [middle] [last] ({{i18n.confirm_ro_statements_caption}} [Month] [Year]) - - -{{ govukCheckboxes({ - name: "RO Statements", - fieldset: { - legend: { - text: i18n.confirm_ro_statements_title, - isPageHeading: true, - classes: "govuk-fieldset__legend--l" - } - }, - items: [ - { - value: "has verified identity", - html: i18n.confirm_ro_statements_first_checkbox1 + "[first] [middle] [last]" + i18n.confirm_ro_statements_first_checkbox2 - }, - { - value: "is the RO", - html: "[SELECTED COMPANY]" + i18n.confirm_ro_statements_second_checkbox1 + "[first] [middle] [last]" + i18n.confirm_ro_statements_second_checkbox2 - }, - { - value: "is the RO of the business", - html: "[first] [middle] [last]" + i18n.confirm_ro_statements_third_checkbox + "[SELECTED COMPANY]" - } - ] -}) }} - -{{ govukButton({ - id: "confirmContinue", - text: i18n.confirm_ro_statements_continue_button, - href: Urls.RLE_VERIFIED + "?lang=" +lang - }) }} - -{% endblock %} diff --git a/src/views/router_views/not_a_director/not_a_director.njk b/src/views/router_views/not_a_director/not_a_director.njk deleted file mode 100644 index c21bd85d..00000000 --- a/src/views/router_views/not_a_director/not_a_director.njk +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "layouts/default.njk" %} - -{% set title = i18n.not_a_director_title %} - -{% block main_content %} - -

{{i18n.not_a_director_title}}

- -

{{i18n.not_a_director_body}}

- -{% endblock %} \ No newline at end of file diff --git a/src/views/router_views/rle-director/rleDirector.njk b/src/views/router_views/rle-director/rleDirector.njk deleted file mode 100644 index 64ca2ee2..00000000 --- a/src/views/router_views/rle-director/rleDirector.njk +++ /dev/null @@ -1,46 +0,0 @@ -{% extends "layouts/default.njk" %} - -{% from "govuk/components/radios/macro.njk" import govukRadios %} -{% from "govuk/components/button/macro.njk" import govukButton %} - -{% set title = i18n.rle_director_main_title %} - -{% block main_content %} - - - [first] [middle] [last] ({{i18n.rle_director_caption}} [Month] [Year]) - - -{{ govukRadios({ - classes: "govuk-radios--inline", - fieldset: { - legend: { - text: i18n.rle_director_title + "[SELECTED COMPANY]?", - isPageHeading: true, - classes: "govuk-fieldset__legend--l" - } - }, - hint: { - text: i18n.rle_director_hint - }, - items: [ - { - value: "yes", - text: i18n.rle_director_yes - }, - { - value: "no", - text: i18n.rle_director_no - } - ] -}) }} - -{{ govukButton({ - attributes: { - id: "submit", - "data-event-id": "continue-button" - }, - text: i18n.rle_director_continue_button - }) }} - -{% endblock %} \ No newline at end of file diff --git a/src/views/router_views/rleDetails/rleDetails.njk b/src/views/router_views/rleDetails/rleDetails.njk deleted file mode 100644 index 54ef9502..00000000 --- a/src/views/router_views/rleDetails/rleDetails.njk +++ /dev/null @@ -1,106 +0,0 @@ -{% extends "layouts/default.njk" %} - -{% from "govuk/components/input/macro.njk" import govukInput %} -{% from "govuk/components/fieldset/macro.njk" import govukFieldset %} -{% from "govuk/components/date-input/macro.njk" import govukDateInput %} -{% from "govuk/components/details/macro.njk" import govukDetails %} -{% from "govuk/components/button/macro.njk" import govukButton %} - - -{% set title = i18n.rle_details_title %} - -{% block main_content %} - -{% call govukFieldset({ - legend: { - text: i18n.rle_details_field_title, - classes: "govuk-fieldset__legend--l", - isPageHeading: true - } -}) %} - - {{ govukInput({ - label: { - text: i18n.rle_details_first_name - }, - classes: "govuk-!-width-two-thirds", - id: "ro-first-name" - }) }} - - {{ govukInput({ - label: { - text: i18n.rle_details_middle_names - }, - classes: "govuk-!-width-two-thirds", - id: "ro-middle-names" - }) }} - - {{ govukInput({ - label: { - text: i18n.rle_details_last_name - }, - classes: "govuk-!-width-two-thirds", - id: "ro-last-name" - }) }} - -{% set dobHintText %} -{{i18n.rle_details_hint1}}
-{{i18n.rle_details_hint2}} -{% endset %} - - {{ govukDateInput({ - fieldset: { - legend: { - html: i18n.rle_details_dob_label, - isPageHeading: false - } - }, - hint: { - html: dobHintText - }, - items: [ - { - name: "day", - label: i18n.rle_details_dob_day, - classes: "govuk-input--width-2", - autocomplete: "dob-day" - }, - { - name: "month", - label: i18n.rle_details_dob_month, - classes: "govuk-input--width-2", - autocomplete: "dob-month" - }, - { - name: "year", - label: i18n.rle_details_dob_year, - classes: "govuk-input--width-4", - autocomplete: "dob-year" - } - ] -}) }} - -{{ govukInput({ - label: { - text: i18n.rle_details_ch_personal_code - }, - classes: "govuk-input--width-10 ", - id: "ch-personal-code" - }) }} - - {{ govukDetails({ - summaryText: i18n.rle_details_summary_text, - text: i18n.rle_details_text -}) }} - -{{ govukButton({ - attributes: { - id: "submit", - "data-event-id": "continue-button" - }, - text: i18n.rle_details_continue_button - }) }} - -{% endcall %} - -{% endblock %} diff --git a/src/views/router_views/rle_verified/rleVerified.njk b/src/views/router_views/rle_verified/rleVerified.njk deleted file mode 100644 index b96d9b93..00000000 --- a/src/views/router_views/rle_verified/rleVerified.njk +++ /dev/null @@ -1,67 +0,0 @@ -{% extends "layouts/default.njk" %} - -{% from "govuk/components/button/macro.njk" import govukButton %} -{% from "govuk/components/panel/macro.njk" import govukPanel %} -{% from "govuk/components/summary-list/macro.njk" import govukSummaryList %} - -{% set title = i18n.rle_verified_title %} - -{% block main_content %} - {{ govukPanel({ - titleText: i18n.rle_verified_main_title, - html: i18n.rle_verified_reference_number_statement + "
[reference number]" - }) }} - - {{ govukSummaryList({ - rows: [ - { - key: { - id: "rle-verified-company-number", - text: i18n.rle_verified_company_number - }, - value: { - text: "[company number]" - } - }, - { - key: { - id: "rle-verified-company-name", - text: i18n.rle_verified_company_name - }, - value: { - text: "[company name]" - } - }, - { - key: { - id: "rle-verified-rle-name", - text: i18n.rle_verified_rle_name - }, - value: { - text: "[RLE name]" - } - }, - { - key: { - id: "rle-verified-ro-name", - text: i18n.rle_verified_ro_name - }, - value: { - text: "[RO name]" - } - } - - ] -}) }} -

{{i18n.rle_verified_confirmation_email_text}}[email]

- -

{{i18n.rle_verified_next_heading}}

- -

- {{i18n.rle_verified_verification_details_link}}[company name]. -

- -

- {{i18n.rle_verified_another_company_verification_link}}. -

-{% endblock %} \ No newline at end of file diff --git a/test/authentication/authenticationCheck.int.ts b/test/authentication/authenticationCheck.int.ts index b79ba3d2..1ee564aa 100644 --- a/test/authentication/authenticationCheck.int.ts +++ b/test/authentication/authenticationCheck.int.ts @@ -48,7 +48,6 @@ describe("Authentication checked on all pages except for the start page", () => expect(middlewareMocks.mockAuthenticationMiddleware).not.toHaveBeenCalled(); }); - // TODO - Add tests for the RLE journey pages it.each([PrefixedUrls.CONFIRM_COMPANY, PrefixedUrls.PSC_TYPE, PrefixedUrls.INDIVIDUAL_PSC_LIST,