From b4a1d4cc25b03e7f905921c4d391bc154da9057b Mon Sep 17 00:00:00 2001 From: JG Date: Wed, 13 Jul 2022 13:15:10 +0100 Subject: [PATCH] fixed after rebasing --- config/locales/en.yml | 1 - spec/factories/location.rb | 1 + spec/features/schemes_spec.rb | 7 ------- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index cc12b8c7f..f6d72b151 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -77,7 +77,6 @@ en: type_of_unit: blank: "Select the most common type of unit at this location" - validations: organisation: name_missing: "Enter the organisation’s name" diff --git a/spec/factories/location.rb b/spec/factories/location.rb index daef3d2ce..934f6d1be 100644 --- a/spec/factories/location.rb +++ b/spec/factories/location.rb @@ -3,6 +3,7 @@ FactoryBot.define do postcode { Faker::Address.postcode.delete(" ") } name { Faker::Address.street_name } type_of_unit { [1, 2, 3, 4, 6, 7].sample } + units { [1, 2, 3, 4, 6, 7].sample } type_of_building { "Purpose built" } mobility_type { %w[A M N W X].sample } wheelchair_adaptation { 2 } diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index 0b36e92c6..783e13432 100644 --- a/spec/features/schemes_spec.rb +++ b/spec/features/schemes_spec.rb @@ -667,12 +667,6 @@ RSpec.describe "Schemes scheme Features" do context "when I select the support answers" do before do - fill_in "Postcode", with: "SW1P 4DF" - fill_in "Location name (optional)", with: "Some name" - fill_in "Total number of units at this location", with: 1 - choose "Self-contained house" - choose "location-wheelchair-adaptation-no-field" - choose "location-add-another-location-no-field" choose "Floating support" choose "Very short stay" click_button "Save and continue" @@ -702,7 +696,6 @@ RSpec.describe "Schemes scheme Features" do context "when I add location to the scheme" do before do - click_link "Add a location" fill_in "Postcode", with: "SW1P 4DF" fill_in "Name (optional)", with: "Some name" fill_in "Total number of units at this location", with: 1