Browse Source

fix tasklist page spec tests

pull/193/head
MadeTech Dushan 3 years ago
parent
commit
52ae043b3a
  1. 4
      spec/features/form/tasklist_page_spec.rb

4
spec/features/form/tasklist_page_spec.rb

@ -32,13 +32,13 @@ RSpec.describe "Task List" do
end end
it "shows the number of completed sections if no sections are completed" do it "shows the number of completed sections if no sections are completed" do
visit("/case-logs/#{empty_case_log.id}") visit("/logs/#{empty_case_log.id}")
expect(page).to have_content("You’ve completed 0 of 10 sections.") expect(page).to have_content("You’ve completed 0 of 10 sections.")
end end
it "shows the number of completed sections if one section is completed" do it "shows the number of completed sections if one section is completed" do
answer_all_questions_in_income_subsection(empty_case_log) answer_all_questions_in_income_subsection(empty_case_log)
visit("/case-logs/#{empty_case_log.id}") visit("/logs/#{empty_case_log.id}")
expect(page).to have_content("You’ve completed 1 of 10 sections.") expect(page).to have_content("You’ve completed 1 of 10 sections.")
end end
end end

Loading…
Cancel
Save