Browse Source

fix test expectations

pull/193/head
MadeTech Dushan 4 years ago
parent
commit
d6f476d752
  1. 4
      spec/features/form/page_routing_spec.rb

4
spec/features/form/page_routing_spec.rb

@ -82,7 +82,7 @@ RSpec.describe "Form Page Routing" do
click_button("Save and continue")
visit("/logs/#{id}")
click_link(text: "Tenancy information")
expect(page).to have_current_path("/case-logs/#{id}/joint-tenancy")
expect(page).to have_current_path("/logs/#{id}/joint-tenancy")
end
it "the first question in tenancy information section is not joint tenancy if startdate is in 2021/22 period" do
@ -93,7 +93,7 @@ RSpec.describe "Form Page Routing" do
click_button("Save and continue")
visit("/logs/#{id}")
click_link(text: "Tenancy information")
expect(page).to have_current_path("/case-logs/#{id}/tenancy-code")
expect(page).to have_current_path("/logs/#{id}/tenancy-code")
end
end
end

Loading…
Cancel
Save