diff --git a/app/pages/addFinancialInstitution/IsRegisteredBusiness/IsTheAddressCorrectPage.scala b/app/pages/addFinancialInstitution/IsRegisteredBusiness/IsTheAddressCorrectPage.scala index 13fb35f..412fe2a 100644 --- a/app/pages/addFinancialInstitution/IsRegisteredBusiness/IsTheAddressCorrectPage.scala +++ b/app/pages/addFinancialInstitution/IsRegisteredBusiness/IsTheAddressCorrectPage.scala @@ -44,7 +44,6 @@ case object IsTheAddressCorrectPage extends QuestionPage[Boolean] { NonUkAddressPage, PostcodePage, SelectedAddressLookupPage, - FetchedRegisteredAddressPage, IsThisAddressPage, UkAddressPage ) diff --git a/test/pages/addFinancialInstitution/IsRegisteredBusiness/IsTheAddressCorrectPageSpec.scala b/test/pages/addFinancialInstitution/IsRegisteredBusiness/IsTheAddressCorrectPageSpec.scala index 1bf0244..ac68947 100644 --- a/test/pages/addFinancialInstitution/IsRegisteredBusiness/IsTheAddressCorrectPageSpec.scala +++ b/test/pages/addFinancialInstitution/IsRegisteredBusiness/IsTheAddressCorrectPageSpec.scala @@ -40,11 +40,11 @@ class IsTheAddressCorrectPageSpec extends PageBehaviours { "when true" in { val result = IsTheAddressCorrectPage.cleanup(Some(true), userAnswersForAddFI.withPage(FetchedRegisteredAddressPage, testAddressResponse)) + result.get.data.value must contain key (FetchedRegisteredAddressPage.toString) result.get.data.value must not contain key(WhereIsFIBasedPage.toString) result.get.data.value must not contain key(NonUkAddressPage.toString) result.get.data.value must not contain key(PostcodePage.toString) result.get.data.value must not contain key(SelectedAddressLookupPage.toString) - result.get.data.value must not contain key(FetchedRegisteredAddressPage.toString) result.get.data.value must not contain key(IsThisAddressPage.toString) result.get.data.value must not contain key(UkAddressPage.toString) }