Browse Source

Update feature test

pull/2918/head
Kat 3 months ago
parent
commit
dba2998990
  1. 2
      spec/features/form/page_routing_spec.rb

2
spec/features/form/page_routing_spec.rb

@ -105,7 +105,7 @@ RSpec.describe "Form Page Routing" do
it "displays the entered date if it's in a valid format" do
lettings_log.update!(startdate: "2021/10/13")
visit("/lettings-logs/#{id}/tenancy-start-date")
fill_in("lettings_log[startdate]", with: "1/12/202")
fill_in("lettings_log[startdate]", with: "1/12/0202")
click_button("Save and continue")
expect(page).to have_current_path("/lettings-logs/#{id}/tenancy-start-date")

Loading…
Cancel
Save