diff --git a/spec/features/schemes_helpers.rb b/spec/features/schemes_helpers.rb index 685c0203e..fc80e08ee 100644 --- a/spec/features/schemes_helpers.rb +++ b/spec/features/schemes_helpers.rb @@ -74,9 +74,7 @@ module SchemesHelpers click_button "Save and continue" choose "location-mobility-type-none-field" click_button "Save and continue" - fill_in "Day", with: 2 - fill_in "Month", with: 5 - fill_in "Year", with: 2023 + fill_in "location_startdate", with: "2/5/2023" click_button "Save and continue" end @@ -95,9 +93,7 @@ module SchemesHelpers click_button "Save and continue" choose "location-mobility-type-none-field" click_button "Save and continue" - fill_in "Day", with: 2 - fill_in "Month", with: 5 - fill_in "Year", with: 2023 + fill_in "location_startdate", with: "2/5/2023" click_button "Save and continue" end diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index 84572f35b..362acadb1 100644 --- a/spec/features/schemes_spec.rb +++ b/spec/features/schemes_spec.rb @@ -368,9 +368,7 @@ RSpec.describe "Schemes scheme Features" do click_button "Save and continue" choose "location-mobility-type-none-field" click_button "Save and continue" - fill_in "Day", with: 2 - fill_in "Month", with: 2 - fill_in "Year", with: 2022 + fill_in "location_startdate", with: "2/2/2022" click_button "Save and continue" end @@ -989,9 +987,7 @@ RSpec.describe "Schemes scheme Features" do click_button "Save and continue" choose "location-mobility-type-none-field" click_button "Save and continue" - fill_in "Day", with: 2 - fill_in "Month", with: 2 - fill_in "Year", with: 2022 + fill_in "location_startdate", with: "2/2/2022" click_button "Save and continue" end