Browse Source

Update tests

pull/2854/head
Kat 8 months ago
parent
commit
22f80ca745
  1. 2
      spec/components/primary_navigation_component_spec.rb
  2. 2
      spec/requests/auth/passwords_controller_spec.rb
  3. 8
      spec/requests/organisation_relationships_controller_spec.rb
  4. 6
      spec/requests/organisations_controller_spec.rb

2
spec/components/primary_navigation_component_spec.rb

@ -14,7 +14,7 @@ RSpec.describe PrimaryNavigationComponent, type: :component do
it "then that item appears as selected" do
result = render_inline(described_class.new(items:))
expect(result.css('.app-primary-navigation__link[aria-current="page"]').text).to include("Organisations")
expect(result.css('.govuk-service-navigation__link[aria-current="page"]').text).to include("Organisations")
end
end

2
spec/requests/auth/passwords_controller_spec.rb

@ -70,7 +70,7 @@ RSpec.describe Auth::PasswordsController, type: :request do
put "/account/password", params: update_password_params
# Devise redirects once after re-sign in with new password and then root redirects as well.
follow_redirect!
expect(page).to have_css("div", class: "govuk-notification-banner__heading", text: message)
expect(page).to have_css("p", class: "govuk-notification-banner__heading", text: message)
end
end
end

8
spec/requests/organisation_relationships_controller_spec.rb

@ -29,7 +29,7 @@ RSpec.describe OrganisationRelationshipsController, type: :request do
end
it "shows the tab navigation" do
expected_html = "<nav class=\"app-primary-navigation\""
expected_html = "<nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\""
expect(response.body).to include(expected_html)
end
@ -125,7 +125,7 @@ RSpec.describe OrganisationRelationshipsController, type: :request do
end
it "shows the tab navigation" do
expected_html = "<nav class=\"app-primary-navigation\""
expected_html = "<nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\""
expect(response.body).to include(expected_html)
end
@ -325,7 +325,7 @@ RSpec.describe OrganisationRelationshipsController, type: :request do
end
it "shows the tab navigation" do
expected_html = "<nav class=\"app-primary-navigation\""
expected_html = "<nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\""
expect(response.body).to include(expected_html)
end
@ -461,7 +461,7 @@ RSpec.describe OrganisationRelationshipsController, type: :request do
end
it "shows the tab navigation" do
expected_html = "<nav class=\"app-primary-navigation\""
expected_html = "<nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\""
expect(response.body).to include(expected_html)
end

6
spec/requests/organisations_controller_spec.rb

@ -480,7 +480,7 @@ RSpec.describe OrganisationsController, type: :request do
end
it "shows the tab navigation" do
expected_html = "<nav class=\"app-primary-navigation\""
expected_html = "<nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\""
expect(response.body).to include(expected_html)
end
@ -612,7 +612,7 @@ RSpec.describe OrganisationsController, type: :request do
end
it "shows the tab navigation" do
expected_html = "<nav class=\"app-primary-navigation\""
expected_html = "<nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\""
expect(response.body).to include(expected_html)
end
@ -938,7 +938,7 @@ RSpec.describe OrganisationsController, type: :request do
end
it "shows the tab navigation" do
expected_html = "<nav class=\"app-primary-navigation\""
expected_html = "<nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\""
expect(response.body).to include(expected_html)
end

Loading…
Cancel
Save