Skip to content

Commit 421413c

Browse files
committed
DL-18141 - adds service name to page titles
1 parent e3c42a1 commit 421413c

10 files changed

+20
-19
lines changed

app/views/nonUkReg/nrl_question.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
}
3939
}
4040

41-
@bcMain(title = titleBuilder(messages("bc.nrl.title"), Some(nrlQuestionForm)), service = service, backlink=Some(backLinkHtml)) {
41+
@bcMain(title = titleBuilder(messages("bc.nrl.title"), Some(nrlQuestionForm), Some(service)), service = service, backlink=Some(backLinkHtml)) {
4242

4343
@if(nrlQuestionForm.errors.nonEmpty) {
4444
@govukErrorSummary(ErrorSummary().withFormErrorsAsText(nrlQuestionForm))

app/views/nonUkReg/paySAQuestion.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
}
4242

43-
@bcMain(title = titleBuilder(messages("bc.nonuk.paySA.title"), Some(paySAQuestionForm)), service = service,
43+
@bcMain(title = titleBuilder(messages("bc.nonuk.paySA.title"), Some(paySAQuestionForm), Some(service)), service = service,
4444
backlink=Some(backLinkHtml)) {
4545

4646
@if(paySAQuestionForm.errors.nonEmpty) {

app/views/review_details.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
}
8787
}
8888

89-
@bcMain(title = titleBuilder(headingText), service = service, backlink=Some(backLinkHtml)) {
89+
@bcMain(title = titleBuilder(headingText, None, Some(service)), service = service, backlink=Some(backLinkHtml)) {
9090

9191
<header>
9292
<h1 class="govuk-heading-xl">

conf/messages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ bc.screen-reader.section = This section is:
88
bc.screen-reader.name = this is for:
99

1010
bc.ated.serviceName = Register for ATED
11+
bc.ATED.serviceName = Register for ATED
1112
bc.awrs.serviceName = Register as an alcohol wholesaler or producer
1213
bc.amls.serviceName = Anti Money Laundering Supervision
1314
bc.fhdds.serviceName = Apply for the Fulfilment House Due Diligence Scheme

test/controllers/BusinessVerificationControllerSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class BusinessVerificationControllerSpec
185185
businessVerificationWithAuthorisedUser(controller) { result =>
186186
val document = Jsoup.parse(contentAsString(result))
187187

188-
document.title() must be("What is your business type? - GOV.UK")
188+
document.title() must be("What is your business type? - Register for ATED - GOV.UK")
189189
document.getElementsByClass("govuk-caption-xl").text() must be(
190190
"This section is ATED registration"
191191
)
@@ -283,7 +283,7 @@ class BusinessVerificationControllerSpec
283283
val document = Jsoup.parse(contentAsString(result))
284284

285285
document.title() must be(
286-
"What is the business type for your agency? - GOV.UK"
286+
"What is the business type for your agency? - Register for ATED - GOV.UK"
287287
)
288288
document.getElementsByClass("govuk-caption-xl").text() must be(
289289
"This section is ATED agency set up"

test/controllers/nonUKReg/AgentRegisterNonUKClientControllerSpec.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class AgentRegisterNonUKClientControllerSpec extends PlaySpec with GuiceOneServe
9595
status(result) must be(OK)
9696
val document = Jsoup.parse(contentAsString(result))
9797

98-
document.title() must be("What is your client’s overseas registered business name and address? - GOV.UK")
98+
document.title() must be("What is your client’s overseas registered business name and address? - Register for ATED - GOV.UK")
9999
document.getElementsByClass("govuk-caption-xl").text() must be("This section is: Add a client")
100100
document.getElementsByTag("h1").text() must include("What is your client’s overseas registered business name and address?")
101101
document.getElementsByAttributeValue("for", "businessName").text() must be("Business name")
@@ -119,7 +119,7 @@ class AgentRegisterNonUKClientControllerSpec extends PlaySpec with GuiceOneServe
119119
status(result) must be(OK)
120120
val document = Jsoup.parse(contentAsString(result))
121121

122-
document.title() must be("What is your client’s overseas registered business name and address? - GOV.UK")
122+
document.title() must be("What is your client’s overseas registered business name and address? - Register for ATED - GOV.UK")
123123
document.getElementsByClass("govuk-caption-xl").text() must be("This section is: Add a client")
124124
document.getElementsByTag("h1").text() must include("What is your client’s overseas registered business name and address?")
125125
document.getElementsByAttributeValue("for", "businessName").text() must be("Business name")
@@ -146,7 +146,7 @@ class AgentRegisterNonUKClientControllerSpec extends PlaySpec with GuiceOneServe
146146
verify(mockBackLinkCache, times(1)).
147147
saveBackLink(ArgumentMatchers.any(), ArgumentMatchers.any())(ArgumentMatchers.any(), ArgumentMatchers.any())
148148

149-
document.title() must be("What is your client’s overseas registered business name and address? - GOV.UK")
149+
document.title() must be("What is your client’s overseas registered business name and address? - Register for ATED - GOV.UK")
150150
document.getElementsByClass("govuk-caption-xl").text() must be("This section is: Add a client")
151151
document.getElementsByTag("h1").text() must include("What is your client’s overseas registered business name and address?")
152152
document.getElementsByAttributeValue("for", "businessName").text() must be("Business name")
@@ -169,7 +169,7 @@ class AgentRegisterNonUKClientControllerSpec extends PlaySpec with GuiceOneServe
169169
status(result) must be(OK)
170170
val document = Jsoup.parse(contentAsString(result))
171171

172-
document.title() must be("What is your client’s overseas registered business name and address? - GOV.UK")
172+
document.title() must be("What is your client’s overseas registered business name and address? - Register for ATED - GOV.UK")
173173
document.getElementsByClass("govuk-caption-xl").text() must be("This section is: Add a client")
174174
document.getElementsByTag("h1").text() must include("What is your client’s overseas registered business name and address?")
175175
document.getElementsByAttributeValue("for", "businessName").text() must be("Business name")
@@ -195,7 +195,7 @@ class AgentRegisterNonUKClientControllerSpec extends PlaySpec with GuiceOneServe
195195
status(result) must be(OK)
196196
val document = Jsoup.parse(contentAsString(result))
197197

198-
document.title() must be("What is your client’s overseas registered business name and address? - GOV.UK")
198+
document.title() must be("What is your client’s overseas registered business name and address? - Register for ATED - GOV.UK")
199199
document.getElementsByClass("govuk-caption-xl").text() must be("This section is: Add a client")
200200
document.getElementsByTag("h1").text() must include("What is your client’s overseas registered business name and address?")
201201
document.getElementById("businessName").`val`() must be("ACME")

test/controllers/nonUKReg/BusinessRegControllerSpec.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class BusinessRegControllerSpec extends PlaySpec with GuiceOneServerPerSuite wit
9494
status(result) must be(OK)
9595
val document = Jsoup.parse(contentAsString(result))
9696

97-
document.title() must be("What is your overseas business registered name and address? - GOV.UK")
97+
document.title() must be("What is your overseas business registered name and address? - Register for ATED - GOV.UK")
9898
document.getElementsByClass("govuk-caption-xl").text() must be("This section is: ATED registration")
9999
document.select("h1").text must include("What is your overseas business registered name and address?")
100100
document.getElementsByAttributeValue("for", "businessName").text() must be("Business name")
@@ -115,7 +115,7 @@ class BusinessRegControllerSpec extends PlaySpec with GuiceOneServerPerSuite wit
115115
status(result) must be(OK)
116116
val document = Jsoup.parse(contentAsString(result))
117117

118-
document.title() must be("What is your overseas business registered name and address? - GOV.UK")
118+
document.title() must be("What is your overseas business registered name and address? - Register for ATED - GOV.UK")
119119
document.getElementsByClass("govuk-caption-xl").text() must be("This section is: ATED registration")
120120
document.select("h1").text must include("What is your overseas business registered name and address?")
121121
document.getElementById("businessName").`val`() must be("ACME")
@@ -132,7 +132,7 @@ class BusinessRegControllerSpec extends PlaySpec with GuiceOneServerPerSuite wit
132132
status(result) must be(OK)
133133
val document = Jsoup.parse(contentAsString(result))
134134

135-
document.title() must be("What is the registered business name and address of your overseas agency? - GOV.UK")
135+
document.title() must be("What is the registered business name and address of your overseas agency? - Register for ATED - GOV.UK")
136136
document.getElementsByClass("govuk-caption-xl").text() must be("This section is: ATED agency set up")
137137
document.select("h1").text must include("What is the registered business name and address of your overseas agency?")
138138
document.getElementsByAttributeValue("for", "businessName").text() must be("Business name")

test/controllers/nonUKReg/NRLQuestionControllerSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ class NRLQuestionControllerSpec extends PlaySpec with GuiceOneServerPerSuite wit
8787
viewWithAuthorisedClient(service) { result =>
8888
status(result) must be(OK)
8989
val document = Jsoup.parse(contentAsString(result))
90-
document.title must be("Are you a non-resident landlord? - GOV.UK")
90+
document.title must be("Are you a non-resident landlord? - Anti Money Laundering Supervision - GOV.UK")
9191
}
9292
}
9393

9494
"Show the NRL page with saved data if we have some" in {
9595
viewWithAuthorisedClientWithSavedData(service) { result =>
9696
status(result) must be(OK)
9797
val document = Jsoup.parse(contentAsString(result))
98-
document.title must be("Are you a non-resident landlord? - GOV.UK")
98+
document.title must be("Are you a non-resident landlord? - Anti Money Laundering Supervision - GOV.UK")
9999
document.select(".govuk-radios__item").text() must include("Yes")
100100
document.select(".govuk-radios__item").text() must include("No")
101101
document.getElementById("paysSA-2").outerHtml() must include("checked")

test/controllers/nonUKReg/OverseasCompanyRegControllerSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class OverseasCompanyRegControllerSpec extends PlaySpec with GuiceOneServerPerSu
9292
status(result) must be(OK)
9393
val document = Jsoup.parse(contentAsString(result))
9494

95-
document.title() must be("Do you have an overseas company registration number? - GOV.UK")
95+
document.title() must be("Do you have an overseas company registration number? - Register for ATED - GOV.UK")
9696
}
9797
}
9898

@@ -107,7 +107,7 @@ class OverseasCompanyRegControllerSpec extends PlaySpec with GuiceOneServerPerSu
107107
status(result) must be(OK)
108108
val document = Jsoup.parse(contentAsString(result))
109109

110-
document.title() must be("Does your client have an overseas company registration number? - GOV.UK")
110+
document.title() must be("Does your client have an overseas company registration number? - Register for ATED - GOV.UK")
111111
}
112112
}
113113

test/controllers/nonUKReg/PaySAQuestionControllerSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class PaySAQuestionControllerSpec extends PlaySpec with GuiceOneServerPerSuite w
9090
viewWithAuthorisedClient(service) { result =>
9191
status(result) must be(OK)
9292
val document = Jsoup.parse(contentAsString(result))
93-
document.title must be("Do you pay tax in the UK through Self Assessment? - GOV.UK")
93+
document.title must be("Do you pay tax in the UK through Self Assessment? - Anti Money Laundering Supervision - GOV.UK")
9494
document.select(".govuk-radios__item").text() must include("Yes")
9595
document.select(".govuk-radios__item").text() must include("No")
9696
document.getElementById("submit").text() must be("Continue")
@@ -100,7 +100,7 @@ class PaySAQuestionControllerSpec extends PlaySpec with GuiceOneServerPerSuite w
100100
viewWithAuthorisedClientWistSavedData(service) { result =>
101101
status(result) must be(OK)
102102
val document = Jsoup.parse(contentAsString(result))
103-
document.title must be("Do you pay tax in the UK through Self Assessment? - GOV.UK")
103+
document.title must be("Do you pay tax in the UK through Self Assessment? - Anti Money Laundering Supervision - GOV.UK")
104104
document.select(".govuk-radios__item").text() must include("Yes")
105105
document.select(".govuk-radios__item").text() must include("No")
106106
document.getElementById("paySA-2").outerHtml() must include("checked")

0 commit comments

Comments
 (0)