diff --git a/conf/messages b/conf/messages index 5fad8561..3c62645f 100644 --- a/conf/messages +++ b/conf/messages @@ -455,9 +455,9 @@ ated.property-details-value.propertyDetailsValue.partAcqDispDate.error.empty = Y ated.property-details-value.propertyDetailsValue.valuationDate.error.empty = You must enter a valuation date ated.property-details-value.propertyDetailsValue.valuationDate-hint = For example, {0} -ated.property-details-value.isPropertyRevalued.title = Have you had the property revalued since you made the £40,000 or more change? -ated.property-details-value.isPropertyRevalued.header = Have you had the property revalued since you made the £40,000 or more change? -ated.property-details-value.isPropertyRevalued = Have you had the property revalued since you made the £40,000 or more change? +ated.property-details-value.isPropertyRevalued.title = Has the property been revalued since the £40,000 or more change? +ated.property-details-value.isPropertyRevalued.header = Has the property been revalued since the £40,000 or more change? +ated.property-details-value.isPropertyRevalued = Has the property been revalued since the £40,000 or more change? ated.property-details-value.isPropertyRevalued.no-text = The property must be revalued before you can submit this chargeable return ated.property-details-value.isPropertyRevalued.error = The property must be revalued before you can submit this chargeable return ated.property-details-value.isPropertyRevalued.error.non-selected = You must answer this question diff --git a/test/controllers/propertyDetails/PropertyDetailsRevaluedControllerSpec.scala b/test/controllers/propertyDetails/PropertyDetailsRevaluedControllerSpec.scala index 4f08baab..f5527af2 100644 --- a/test/controllers/propertyDetails/PropertyDetailsRevaluedControllerSpec.scala +++ b/test/controllers/propertyDetails/PropertyDetailsRevaluedControllerSpec.scala @@ -101,7 +101,7 @@ class PropertyDetailsRevaluedControllerSpec extends PlaySpec with OneServerPerSu result => status(result) must be(OK) val document = Jsoup.parse(contentAsString(result)) - document.getElementById("property-details-header").text() must be("Have you had the property revalued since you made the £40,000 or more change?") + document.getElementById("property-details-header").text() must be("Has the property been revalued since the £40,000 or more change?") document.getElementById("isPropertyRevalued").text() contains ("Yes No") document.getElementById("revaluedValue_field").text() must be("What is the new valuation of the property in GBP?") diff --git a/test/views/propertyDetails/PropertyDetailsRevaluedSpec.scala b/test/views/propertyDetails/PropertyDetailsRevaluedSpec.scala index 95a36371..82e92492 100644 --- a/test/views/propertyDetails/PropertyDetailsRevaluedSpec.scala +++ b/test/views/propertyDetails/PropertyDetailsRevaluedSpec.scala @@ -51,13 +51,13 @@ class PropertyDetailsRevaluedSpec extends FeatureSpec with OneServerPerSuite wit val document = Jsoup.parse(html.toString()) Then("the page title : Have you had the property revalued since you made the £40,000 change?") - assert(document.title() === "Have you had the property revalued since you made the £40,000 or more change? - GOV.UK") + assert(document.title() === "Has the property been revalued since the £40,000 or more change? - GOV.UK") Then("The subheader should be - Create return") assert(document.getElementById("pre-heading").text() === "This section is: Create return") - + And("No data is populated") - assert(document.getElementById("isPropertyRevalued").text() === "Have you had the property revalued since you made the £40,000 or more change? Yes No") + assert(document.getElementById("isPropertyRevalued").text() === "Has the property been revalued since the £40,000 or more change? Yes No") assert(document.getElementById("isPropertyRevalued-true").text() === "") assert(document.getElementById("isPropertyRevalued-false").text() === "") assert(document.getElementById("revaluedDate-day").attr("value") === "") @@ -103,13 +103,13 @@ class PropertyDetailsRevaluedSpec extends FeatureSpec with OneServerPerSuite wit val document = Jsoup.parse(html.toString()) Then("the page title : Have you had the property revalued since you made the £40,000 change?") - assert(document.title() === "Have you had the property revalued since you made the £40,000 or more change? - GOV.UK") + assert(document.title() === "Has the property been revalued since the £40,000 or more change? - GOV.UK") Then("The subheader should be - Change return") assert(document.getElementById("pre-heading").text() === "This section is: Change return") And("The data is populated for a property value set to true") - assert(document.getElementById("isPropertyRevalued").text() === "Have you had the property revalued since you made the £40,000 or more change? Yes No") + assert(document.getElementById("isPropertyRevalued").text() === "Has the property been revalued since the £40,000 or more change? Yes No") assert(document.getElementById("isPropertyRevalued-true").attr("checked") === "checked") assert(document.getElementById("isPropertyRevalued-false").attr("checked") === "") assert(document.getElementById("revaluedDate-day").attr("value") === "1") @@ -149,10 +149,10 @@ class PropertyDetailsRevaluedSpec extends FeatureSpec with OneServerPerSuite wit val document = Jsoup.parse(html.toString()) Then("the page title : Have you had the property revalued since you made the £40,000 change?") - assert(document.title() === "Have you had the property revalued since you made the £40,000 or more change? - GOV.UK") + assert(document.title() === "Has the property been revalued since the £40,000 or more change? - GOV.UK") And("The data is populated for a property value set to false") - assert(document.getElementById("isPropertyRevalued").text() === "Have you had the property revalued since you made the £40,000 or more change? Yes No") + assert(document.getElementById("isPropertyRevalued").text() === "Has the property been revalued since the £40,000 or more change? Yes No") assert(document.getElementById("isPropertyRevalued-true").attr("checked") === "") assert(document.getElementById("isPropertyRevalued-false").attr("checked") === "checked") assert(document.getElementById("revaluedDate-day").attr("value") === "")