Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CST-2513] Correct error label copy #4825

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ en:
local_authority:
blank: "Enter your school’s local authority"
programme_choice:
blank: "Select how you want to run your induction"
blank: "Select how you want to run your training"
cohorts:
blank: "Choose at least one"
lead_providers:
Expand Down
2 changes: 1 addition & 1 deletion spec/forms/induction_choice_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
subject(:form) { described_class.new(school_cohort:) }

describe "validations" do
it { is_expected.to validate_presence_of(:programme_choice).with_message("Select how you want to run your induction") }
it { is_expected.to validate_presence_of(:programme_choice).with_message("Select how you want to run your training") }
end

describe "#programme_choices" do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
induction_choice_form: { programme_choice: "" },
}
expect(response).to render_template "admin/schools/cohorts/change_programme/show"
expect(response.body).to include "Select how you want to run your induction"
expect(response.body).to include "Select how you want to run your training"
end

it "shows a confirmation message" do
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/schools/choose_programme_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
post "/schools/#{school.slug}/cohorts/#{cohort.start_year}/choose-programme", params: { induction_choice_form: { programme_choice: "" } }

expect(response).to render_template("schools/choose_programme/show")
expect(response.body).to include("Select how you want to run your induction")
expect(response.body).to include("Select how you want to run your training")
end

it "should redirect to confirmation page" do
Expand Down
Loading