Skip to content

Commit

Permalink
Change content on add membership link
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleMacPherson committed Jan 21, 2025
1 parent c57d80a commit 1272c42
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/controllers/jobseekers/profiles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Jobseekers::ProfilesController < Jobseekers::BaseController
title: "Professional Body Memberships",
display_summary: -> { profile.professional_body_memberships.present? },
key: "professional_body_memberships",
link_text: "Add professional body membership",
link_text: "Add membership",
page_path: -> { new_jobseekers_profile_professional_body_membership_path },
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
p class="govuk-!-margin-bottom-6"
= govuk_link_to "Add professional body membership", new_jobseekers_profile_professional_body_membership_path
= govuk_link_to "Add membership", new_jobseekers_profile_professional_body_membership_path

- if profile.professional_body_memberships.any?
= render "jobseekers/professional_body_memberships/professional_body_memberships", profile: profile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- content_for :page_title_prefix, t(".caption")

- content_for :breadcrumbs do
nav.govuk-breadcrumbs aria-label="Breadcrumbs"
= govuk_back_link text: t("buttons.back"), href: jobseekers_profile_path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
= render "jobseekers/professional_body_memberships/professional_body_memberships", profile: profile

.govuk-button-group
= govuk_button_link_to "Add professional body membership", new_jobseekers_profile_professional_body_membership_path(profile), class: "govuk-button--secondary govuk-!-margin-bottom-0"
= govuk_button_link_to "Add membership", new_jobseekers_profile_professional_body_membership_path(profile), class: "govuk-button--secondary govuk-!-margin-bottom-0"
= govuk_button_link_to "Return to profile", jobseekers_profile_path
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
before { visit jobseekers_profile_path }

it "allows jobseekers to add professional body memberships" do
click_on "Add professional body membership"
click_on "Add membership"
click_on "Save and continue"

expect(page).to have_css("h2.govuk-error-summary__title", text: "There is a problem")
Expand Down

0 comments on commit 1272c42

Please sign in to comment.