From c86375052f6746712031785a12f42e8bf44f7e0e Mon Sep 17 00:00:00 2001 From: matthewharris1 <33547722+matthewharris1@users.noreply.github.com> Date: Thu, 17 Oct 2024 10:51:08 +0100 Subject: [PATCH 1/2] DAC6-3384 | Removed backlink on information sent page --- app/views/InformationSentView.scala.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/InformationSentView.scala.html b/app/views/InformationSentView.scala.html index 6ab126f3..fd5b3426 100644 --- a/app/views/InformationSentView.scala.html +++ b/app/views/InformationSentView.scala.html @@ -16,13 +16,12 @@ @this( layout: templates.Layout, - link: components.Link, - govukBackLink: GovukBackLink + link: components.Link ) @()(implicit request: Request[_], messages: Messages) -@layout(pageTitle = titleNoForm(messages("informationSent.title")), backLink = controllers.addFinancialInstitution.routes.FinancialInstitutionAddedConfirmationController.onPageLoad.url) { +@layout(pageTitle = titleNoForm(messages("informationSent.title")), showBackLink = false) {

@messages("informationSent.heading")

From 5a17b1f8b8aff7243056b839dd16366486b67a82 Mon Sep 17 00:00:00 2001 From: matthewharris1 <33547722+matthewharris1@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:50:31 +0100 Subject: [PATCH 2/2] DAC6-3384 | Removed back link requirement from unit test --- test/controllers/InformationSentControllerSpec.scala | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/controllers/InformationSentControllerSpec.scala b/test/controllers/InformationSentControllerSpec.scala index ffa4096c..54e902ca 100644 --- a/test/controllers/InformationSentControllerSpec.scala +++ b/test/controllers/InformationSentControllerSpec.scala @@ -38,9 +38,6 @@ class InformationSentControllerSpec extends SpecBase { status(result) mustEqual OK contentAsString(result) mustEqual view()(request, messages(application)).toString - - val fiAddedUrl = addFinancialInstitution.routes.FinancialInstitutionAddedConfirmationController.onPageLoad.url - contentAsString(result) must include(s"""Back""") } } }