Browse Source

Capybara does not enjoy setting focus

logs-status-on-log
baarkerlounger 3 years ago
parent
commit
94ec6d2e95
  1. 9
      spec/features/form/tasklist_page_spec.rb

9
spec/features/form/tasklist_page_spec.rb

@ -42,13 +42,4 @@ RSpec.describe "Task List" do
visit("/logs/#{empty_case_log.id}")
expect(page).to have_link("Skip to next incomplete section", href: /#household-characteristics/)
end
context "when the 'Skip to next incomplete section is clicked'" do
it "jumps to the next incomplete section" do
answer_all_questions_in_income_subsection(empty_case_log)
visit("/logs/#{empty_case_log.id}")
click_link("Skip to next incomplete section")
expect(page).to have_current_path("/logs/#{empty_case_log.id}#household-characteristics")
end
end
end

Loading…
Cancel
Save