|
|
@ -149,9 +149,9 @@ RSpec.describe Form, type: :model do |
|
|
|
expect(form.next_incomplete_section_redirect_path(subsection, case_log)).to eq("household-needs/check-answers") |
|
|
|
expect(form.next_incomplete_section_redirect_path(subsection, case_log)).to eq("household-needs/check-answers") |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it "returns the first page of the next incomplete subsection (skipping completed subsections)" do |
|
|
|
it "returns the first page of the next incomplete subsection (skipping completed subsections, and pages that are not routed to)" do |
|
|
|
answer_household_needs(case_log) |
|
|
|
answer_household_needs(case_log) |
|
|
|
expect(form.next_incomplete_section_redirect_path(subsection, case_log)).to eq("accessible-select-too") |
|
|
|
expect(form.next_incomplete_section_redirect_path(subsection, case_log)).to eq("property-postcode") |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it "returns the declaration section for a completed case log" do |
|
|
|
it "returns the declaration section for a completed case log" do |
|
|
|