From 140db20d2c22ad04c94fecd6e79bfca49d32f030 Mon Sep 17 00:00:00 2001 From: Abigail McPhillips Date: Thu, 22 Aug 2024 11:28:33 +0100 Subject: [PATCH] Update happy path spec --- .../provider/authenticated/happy_path_spec.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spec/features/early_years_payment/provider/authenticated/happy_path_spec.rb b/spec/features/early_years_payment/provider/authenticated/happy_path_spec.rb index da62683cbf..a7e2d5252a 100644 --- a/spec/features/early_years_payment/provider/authenticated/happy_path_spec.rb +++ b/spec/features/early_years_payment/provider/authenticated/happy_path_spec.rb @@ -34,9 +34,10 @@ click_button "Continue" expect(page.current_path).to eq "/early-years-payment-provider/start-date" - fill_in("Day", with: "1") - fill_in("Month", with: "12") - fill_in("Year", with: "2024") + date = Date.yesterday + fill_in("Day", with: date.day) + fill_in("Month", with: date.month) + fill_in("Year", with: date.year) click_button "Continue" expect(page.current_path).to eq "/early-years-payment-provider/child-facing"