From 6a1d74a1265255d57f481469ae78b2155e0c7dba Mon Sep 17 00:00:00 2001 From: Kat <54268893+kosiakkatrina@users.noreply.github.com> Date: Thu, 9 Jan 2025 15:00:47 +0000 Subject: [PATCH] Fix missed tests --- spec/features/schemes_helpers.rb | 8 ++------ spec/features/schemes_spec.rb | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) 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