From c37b341e61027b1c04fe861ffe6ed79c026af035 Mon Sep 17 00:00:00 2001 From: jmsatheesh <19515164+jmsatheesh@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:49:55 +0100 Subject: [PATCH] DDCNL-9316 - Fixed failed test case --- test/errorHandler/ErrorHandlerSpec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/errorHandler/ErrorHandlerSpec.scala b/test/errorHandler/ErrorHandlerSpec.scala index 7da96062..92b28fd6 100644 --- a/test/errorHandler/ErrorHandlerSpec.scala +++ b/test/errorHandler/ErrorHandlerSpec.scala @@ -54,7 +54,7 @@ class ErrorHandlerSpec extends UnitSpec with GuiceOneAppPerSuite with Injecting{ val docHeading = doc.select("#errorHeading").text() val docMessage = doc.select("#errorText").text() - docTitle shouldBe title + " - " + messages("title.pattern") + docTitle shouldBe title + " - Marriage Allowance - GOV.UK" docHeading shouldBe heading docMessage shouldBe message } @@ -66,7 +66,7 @@ class ErrorHandlerSpec extends UnitSpec with GuiceOneAppPerSuite with Injecting{ val doc: Document = Jsoup.parse(notFoundTemplate.toString()) val docTitle = doc.title() - docTitle should include(messages("title.pattern")) + docTitle should include("Marriage Allowance - GOV.UK") } } } \ No newline at end of file