Browse Source

Update page routing test

pull/2484/head
Kat 10 months ago
parent
commit
af6b4dd9ae
  1. 2
      app/views/form/page.html.erb
  2. 2
      spec/features/form/page_routing_spec.rb

2
app/views/form/page.html.erb

@ -78,7 +78,7 @@
<% if all_questions_with_errors.count > 1 %>
<div class="govuk-button-group">
<%= f.govuk_submit "See all related answers", name: "check_errors", secondary: true, class: "govuk-body govuk-link submit-button-link" %>
<%= f.govuk_submit "See all related answers", name: "check_errors", class: "govuk-body govuk-link submit-button-link" %>
</div>
<% end %>

2
spec/features/form/page_routing_spec.rb

@ -285,7 +285,7 @@ RSpec.describe "Form Page Routing" do
click_button("Save and continue")
expect(page).to have_current_path("/lettings-logs/#{id}/income-amount")
expect(page).to have_link("See all related answers", href: "/lettings-logs/#{id}/check-your-errors?original_page_id=income_amount&related_question_ids%5B%5D=earnings&related_question_ids%5B%5D=hhmemb&related_question_ids%5B%5D=ecstat1&related_question_ids%5B%5D=ecstat2")
expect(page).to have_button("See all related answers")
end
end
end

Loading…
Cancel
Save