From af6b4dd9ae2045166cc6911b72b85010af61f4a7 Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 20 Jun 2024 15:57:56 +0100 Subject: [PATCH] Update page routing test --- app/views/form/page.html.erb | 2 +- spec/features/form/page_routing_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/form/page.html.erb b/app/views/form/page.html.erb index dbfae1b6f..8a545da0c 100644 --- a/app/views/form/page.html.erb +++ b/app/views/form/page.html.erb @@ -78,7 +78,7 @@ <% if all_questions_with_errors.count > 1 %>
- <%= 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" %>
<% end %> diff --git a/spec/features/form/page_routing_spec.rb b/spec/features/form/page_routing_spec.rb index 0a0b7307f..42a2c25fb 100644 --- a/spec/features/form/page_routing_spec.rb +++ b/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