diff --git a/app/views/support/providers/accredited_providers/index.html.erb b/app/views/support/providers/accredited_providers/index.html.erb
index 0030a0141d..6f34f5bc9e 100644
--- a/app/views/support/providers/accredited_providers/index.html.erb
+++ b/app/views/support/providers/accredited_providers/index.html.erb
@@ -1,9 +1,9 @@
<%= render PageTitle.new(title: "support.providers.accredited_providers.index") %>
-<%= govuk_button_link_to("Add accredited provider", search_support_recruitment_cycle_provider_accredited_providers_path) %>
+<%= govuk_button_link_to("Add accredited partner", search_support_recruitment_cycle_provider_accredited_providers_path) %>
<% if @accredited_providers.none? %>
-
There are no accredited providers for <%= @provider.provider_name %>.
There are no accredited partners for <%= @provider.provider_name %>.
<% else %>
<% @accredited_providers.each do |accredited_provider| %>
<%= render AccreditedProviderComponent.new(
diff --git a/app/views/support/providers/accredited_providers/new.html.erb b/app/views/support/providers/accredited_providers/new.html.erb
index dfdc34edc3..8560c79276 100644
--- a/app/views/support/providers/accredited_providers/new.html.erb
+++ b/app/views/support/providers/accredited_providers/new.html.erb
@@ -1,4 +1,4 @@
-<% content_for :page_title, title_with_error_prefix("About the accredited provider - Add accredited provider - #{@provider.name_and_code}", @accredited_provider_form.errors.present?) %>
+<% content_for :page_title, title_with_error_prefix("About the accredited partnership - Add accredited partner - #{@provider.name_and_code}", @accredited_provider_form.errors.present?) %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 6c2b28e624..5275f7bf04 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -130,7 +130,7 @@ en:
users: "Users"
training_partners: "Training partners"
organisation_details: "Organisation details"
- accredited_provider: "Accredited providers"
+ accredited_partnerships: "Accredited partnerships"
secondary_navigation:
description: Description
basic_details: Basic details
@@ -279,7 +279,7 @@ en:
show: "User overview"
delete: "Are you sure you want to remove this user?"
accredited_providers:
- index: Accredited providers
+ index: Accredited partnerships
onboardings:
new: "Organisation details"
onboarding:
@@ -334,7 +334,7 @@ en:
train_with_us:
text: "Enter details about the training provider"
about_accrediting_provider:
- text: "Enter details about the accredited provider"
+ text: "Enter details about the ratifying partner"
value_not_entered: "Not entered"
a_level_grades:
minimum_grade: Grade %{minimum_grade}
@@ -650,26 +650,26 @@ en:
cannot_find: *cannot_find
accredited_providers:
new:
- title: About the accredited provider
- hint: Tell candidates about the accredited provider. You could mention their academic specialities and achievements.
- caption: &add_accredited_provider Add accredited provider
+ title: About the accredited partnership
+ hint: Tell candidates about the accredited partner. You could mention their academic specialities and achievements.
+ caption: &add_accredited_partner Add accredited partner
edit:
- title: About the accredited provider
- hint: Tell candidates about the accredited provider. You could mention their academic specialities and achievements.
- updated: About the accredited provider updated
+ title: About the accredited partnership
+ hint: Tell candidates about the accredited partner. You could mention their academic specialities and achievements.
+ updated: About the accredited partner updated
delete:
- title: Are you sure you want to remove this accredited provider?
- remove: Remove accredited provider
- updated: Accredited provider removed
+ title: Are you sure you want to remove this accredited partner?
+ remove: Remove accredited partner
+ updated: Accredited partner removed
checks:
show:
- title: *add_accredited_provider
- caption: *add_accredited_provider
- add: *add_accredited_provider
+ title: *add_accredited_partner
+ caption: *add_accredited_partner
+ add: *add_accredited_partner
accredited_provider_search:
new:
title: &accredited_provider_title Enter a provider name, UKPRN or postcode
- caption: *add_accredited_provider
+ caption: *add_accredited_partner
search_result_title_component:
add_school: *add_school
many_results_html: Showing the first %{results_limit} results. %{link} if the %{search_resource} you’re looking for is not listed.
@@ -710,25 +710,25 @@ en:
accredited_provider_search:
new:
title: *accredited_provider_title
- caption: &accredited_provider_caption "Add accredited provider - %{provider_name} (%{code})"
+ caption: &accredited_provider_caption "Add accredited partner - %{provider_name} (%{code})"
accredited_providers:
new:
- title: About the accredited provider
- hint: Tell candidates about the accredited provider. You could mention their academic specialities and achievements.
- caption: "Add accredited provider - %{provider_name} (%{code})"
+ title: About the accredited partner
+ hint: Tell candidates about the accredited partner. You could mention their academic specialities and achievements.
+ caption: "Add accredited partner - %{provider_name} (%{code})"
edit:
- title: About the accredited provider
- hint: Tell candidates about the accredited provider. You could mention their academic specialities and achievements.
+ title: About the accredited partner
+ hint: Tell candidates about the accredited partner. You could mention their academic specialities and achievements.
caption: "%{provider_name}"
- updated: About the accredited provider updated
+ updated: About the accredited partner updated
delete:
- title: Are you sure you want to remove this accredited provider?
- remove: Remove accredited provider
- updated: Accredited provider removed
+ title: Are you sure you want to remove this accredited partner?
+ remove: Remove accredited partner
+ updated: Accredited partner removed
checks:
show:
caption: *accredited_provider_caption
- add: Add accredited provider
+ add: Add accredited partner
provider_type:
lead_school: "School"
scitt: "School centred initial teacher training (SCITT)"
@@ -828,9 +828,9 @@ en:
applications_open_from:
blank: "Select an applications open date"
accrediting_provider:
- blank: "Select an accredited provider"
- is_not_accredited: "Update the accredited provider"
- does_not_exist_in_cycle: "The accredited provider %{accredited_provider_code} does not exist in this cycle"
+ blank: "Select a ratifying partner"
+ is_not_accredited: "Update the ratifying partner"
+ does_not_exist_in_cycle: "The accredited partner %{accredited_provider_code} does not exist in this cycle"
is_send:
inclusion: Select if this course has a special educational needs and disability (SEND) specialism
a_level_subject_requirements:
@@ -950,8 +950,8 @@ en:
accredited_provider_form:
attributes:
description:
- blank: Enter details about the accredited provider
- too_long: Description about the accredited provider must be 100 words or fewer
+ blank: Enter details about the accredited partner
+ too_long: Description about the accredited partnership must be 100 words or fewer
a_level_steps/what_a_level_is_required:
attributes:
subject:
diff --git a/spec/components/accredited_provider_component_spec.rb b/spec/components/accredited_provider_component_spec.rb
index 3888aa45ab..23b4ecf165 100644
--- a/spec/components/accredited_provider_component_spec.rb
+++ b/spec/components/accredited_provider_component_spec.rb
@@ -17,7 +17,7 @@
end
it 'renders the about_accredited_provider key' do
- expect(component).to have_css '.govuk-summary-list__key', text: 'About the accredited provider'
+ expect(component).to have_css '.govuk-summary-list__key', text: 'About the accredited partner'
end
it 'renders the about_accredited_provider change link' do
diff --git a/spec/components/add_course_button_spec.rb b/spec/components/add_course_button_spec.rb
index 504977b9f8..32b8899f9f 100644
--- a/spec/components/add_course_button_spec.rb
+++ b/spec/components/add_course_button_spec.rb
@@ -13,9 +13,9 @@
end
context 'when the provider has not filled out any required sections' do
- it 'renders an accredited provider link' do
+ it 'renders an accredited partner link' do
expect(rendered_content).to have_link(
- 'add an accredited provider',
+ 'add an accredited partner',
href: publish_provider_recruitment_cycle_accredited_providers_path(
provider.provider_code,
provider.recruitment_cycle.year
@@ -47,9 +47,9 @@
)
end
- it 'renders an accredited provider link' do
+ it 'renders an accredited partner link' do
expect(rendered_content).to have_link(
- 'add an accredited provider',
+ 'add an accredited partner',
href: publish_provider_recruitment_cycle_accredited_providers_path(
provider.provider_code,
provider.recruitment_cycle.year
@@ -71,9 +71,9 @@
context 'when the provider is an accredited provider' do
let(:provider) { build(:provider, :accredited_provider, recruitment_cycle:) }
- it 'renders an accredited provider link' do
+ it 'renders an accredited partner link' do
expect(rendered_content).to have_no_link(
- 'add an accredited provider',
+ 'add an accredited partner',
href: publish_provider_recruitment_cycle_accredited_providers_path(
provider.provider_code,
provider.recruitment_cycle.year
@@ -95,9 +95,9 @@
context 'when the provider has only added a site' do
let(:provider) { build(:provider, sites: [create(:site)], recruitment_cycle:) }
- it 'renders an accredited provider link' do
+ it 'renders an accredited partner link' do
expect(rendered_content).to have_link(
- 'add an accredited provider',
+ 'add an accredited partner',
href: publish_provider_recruitment_cycle_accredited_providers_path(
provider.provider_code,
provider.recruitment_cycle.year
@@ -129,9 +129,9 @@
)
end
- it 'renders an accredited provider link' do
+ it 'renders an accredited partner link' do
expect(rendered_content).to have_link(
- 'add an accredited provider',
+ 'add an accredited partner',
href: publish_provider_recruitment_cycle_accredited_providers_path(
provider.provider_code,
provider.recruitment_cycle.year
@@ -163,9 +163,9 @@
)
end
- it 'renders an accredited provider link' do
+ it 'renders an accredited partner link' do
expect(rendered_content).to have_no_link(
- 'add an accredited provider',
+ 'add an accredited partner',
href: publish_provider_recruitment_cycle_accredited_providers_path(
provider.provider_code,
provider.recruitment_cycle.year
diff --git a/spec/components/course_preview/missing_information_component_spec.rb b/spec/components/course_preview/missing_information_component_spec.rb
index f039463d61..e48babec09 100644
--- a/spec/components/course_preview/missing_information_component_spec.rb
+++ b/spec/components/course_preview/missing_information_component_spec.rb
@@ -52,7 +52,7 @@ module CoursePreview
include_examples 'course with missing information', :train_with_disability, 'Enter details about training with disabilities and other needs'
include_examples 'course with missing information', :train_with_us, 'Enter details about the training provider'
- include_examples 'course with missing information', :about_accrediting_provider, 'Enter details about the accredited provider'
+ include_examples 'course with missing information', :about_accrediting_provider, 'Enter details about the ratifying partner'
end
end
end
diff --git a/spec/components/navigation_bar_preview.rb b/spec/components/navigation_bar_preview.rb
index 048da27991..a047d3419e 100644
--- a/spec/components/navigation_bar_preview.rb
+++ b/spec/components/navigation_bar_preview.rb
@@ -27,7 +27,7 @@ def ap_items
{ name: 'Courses', url: 'root_path' },
{ name: 'Schools', url: '#', current: false },
{ name: 'Users', url: '#' },
- { name: 'Accredited providers', url: '#' },
+ { name: 'Accredited partnerships', url: '#' },
{ name: 'Organisation details', url: '#' }
]
end
diff --git a/spec/features/publish/courses/add_accredited_provider_when_publishing_a_course_spec.rb b/spec/features/publish/courses/add_ratifying_partner_when_publishing_a_course_spec.rb
similarity index 80%
rename from spec/features/publish/courses/add_accredited_provider_when_publishing_a_course_spec.rb
rename to spec/features/publish/courses/add_ratifying_partner_when_publishing_a_course_spec.rb
index 0e56ce6491..36ebdf1764 100644
--- a/spec/features/publish/courses/add_accredited_provider_when_publishing_a_course_spec.rb
+++ b/spec/features/publish/courses/add_ratifying_partner_when_publishing_a_course_spec.rb
@@ -7,14 +7,14 @@
given_i_am_authenticated_as_a_provider_user
end
- scenario 'Add accrediting provider to provider and provider has no accrediting providers, change accrediting provider of course then publish' do
- and_the_provider_has_no_accredited_provider
+ scenario 'Add ratifying provider to training provider and provider has no accredited partner, change ratifying provider of course then publish' do
+ and_the_provider_has_no_accredited_partners
and_there_is_a_draft_course_with_an_unaccredited_provider
# Publising is invalid
when_i_visit_the_course_page
and_i_click_the_publish_button
- then_i_should_see_an_error_message_that_accredited_provider_is_not_accredited
+ then_i_should_see_an_error_message_that_ratifying_provider_is_not_accredited
# Add accrediting provider to provider
when_i_click_the_error_message_link
@@ -28,11 +28,11 @@
# Publishing is invalid
when_i_visit_the_course_page
and_i_click_the_publish_button
- then_i_should_see_an_error_message_that_accredited_provider_is_not_accredited
+ then_i_should_see_an_error_message_that_ratifying_provider_is_not_accredited
# Clicking error message allows user to select accrediting provider
when_i_click_the_error_message_link
- and_i_choose_the_new_accredited_provider
+ and_i_choose_the_new_accredited_partner
and_i_click_the_publish_button
then_i_should_see_a_success_message
end
@@ -49,7 +49,7 @@
# Clicking error message allows user to select accrediting provider
when_i_click_the_select_accredited_provider_error_message_link
- and_i_choose_the_new_accredited_provider
+ and_i_choose_the_new_accredited_partner
and_i_click_the_publish_button
then_i_should_see_a_success_message
end
@@ -68,7 +68,7 @@ def and_the_provider_has_a_valid_accrediting_provider
provider.update!(accrediting_provider_enrichments: [enrichment])
end
- def and_the_provider_has_no_accredited_provider
+ def and_the_provider_has_no_accredited_partners
expect(provider.accredited_providers).to be_empty
end
@@ -103,12 +103,12 @@ def then_i_should_see_a_success_message
expect(page).to have_content('Your course has been published.')
end
- def then_i_should_see_an_error_message_that_accredited_provider_is_not_accredited
- expect(publish_provider_courses_show_page.error_messages).to include('Update the accredited provider')
+ def then_i_should_see_an_error_message_that_ratifying_provider_is_not_accredited
+ expect(publish_provider_courses_show_page.error_messages).to include('Update the ratifying partner')
end
def then_i_should_see_an_error_message_for_the_accrediting_provider
- expect(publish_provider_courses_show_page.error_messages).to include('Select an accredited provider')
+ expect(publish_provider_courses_show_page.error_messages).to include('Select a ratifying partner')
end
def when_i_click_the_error_message_link
@@ -132,17 +132,17 @@ def and_i_search_for_an_accredited_provider
end
def and_i_fill_in_the_accredited_provider_form
- publish_courses_new_accredited_provider_page.about_section_input.set('About course')
+ publish_courses_new_ratifying_partner_page.about_section_input.set('About course')
- publish_courses_new_accredited_provider_page.submit.click
+ publish_courses_new_ratifying_partner_page.submit.click
end
def and_i_confirm_creation_of_the_accredited_provider
- publish_courses_new_accredited_provider_page.submit.click
+ publish_courses_new_ratifying_partner_page.submit.click
end
def then_i_see_that_the_accredited_provider_has_been_added
- expect(page).to have_content('Accredited provider added')
+ expect(page).to have_content('Accredited partner added')
end
def and_i_click_the_publish_button
@@ -150,13 +150,13 @@ def and_i_click_the_publish_button
end
def when_i_click_the_select_accredited_provider_error_message_link
- page.click_link_or_button('Select an accredited provider')
+ page.click_link_or_button('Select a ratifying partner')
end
- def and_i_choose_the_new_accredited_provider
+ def and_i_choose_the_new_accredited_partner
choose accredited_provider.provider_name
- page.click_link_or_button('Update accredited provider')
- expect(page).to have_content('Accredited provider updated')
+ page.click_link_or_button('Update ratifying partner')
+ expect(page).to have_content('Ratifying partner updated')
end
def and_an_accredited_provider_exists
diff --git a/spec/features/publish/courses/adding_an_accredited_provider_to_an_unpublished_course_spec.rb b/spec/features/publish/courses/adding_an_accredited_provider_to_an_unpublished_course_spec.rb
index a1764de28e..83213cd19e 100644
--- a/spec/features/publish/courses/adding_an_accredited_provider_to_an_unpublished_course_spec.rb
+++ b/spec/features/publish/courses/adding_an_accredited_provider_to_an_unpublished_course_spec.rb
@@ -2,44 +2,44 @@
require 'rails_helper'
-feature 'unpublished course without accredited provider', { can_edit_current_and_next_cycles: false } do
- scenario 'adding and changing an accredited provider' do
+feature 'unpublished course without ratifying provider', { can_edit_current_and_next_cycles: false } do
+ scenario 'adding and changing an ratifying provider' do
given_i_am_authenticated_as_a_provider_user
- and_i_visit_the_course_details_page_of_a_course_without_an_accredited_provider
+ and_i_visit_the_course_details_page_of_a_course_without_an_ratifying_provider
and_i_click_the_add_accredited_provider_link
- and_i_create_a_new_accredited_provider
+ and_i_create_a_new_accredited_partnership
and_i_revisit_the_course_details_page
- when_i_click_select_an_accredited_provider
- and_i_choose_the_new_accredited_provider
+ when_i_click_select_an_accredited_partner
+ and_i_choose_the_new_ratifying_provider
then_i_should_see_the_success_message
- given_i_click_change_accredited_provider
- and_i_click_update_accredited_provider
+ given_i_click_change_ratifying_partner
+ and_i_click_update_ratifying_provider
then_i_should_see_the_success_message
end
- def given_i_click_change_accredited_provider
- click_link_or_button 'Change accredited provider'
+ def given_i_click_change_ratifying_partner
+ click_link_or_button 'Change ratifying partner'
end
def then_i_should_see_the_success_message
- expect(page).to have_text('Accredited provider updated')
+ expect(page).to have_text('Ratifying partner updated')
end
- def and_i_click_update_accredited_provider
- click_link_or_button 'Update accredited provider'
+ def and_i_click_update_ratifying_provider
+ click_link_or_button 'Update ratifying partner'
end
- def and_i_choose_the_new_accredited_provider
+ def and_i_choose_the_new_ratifying_provider
choose @accredited_provider.provider_name
- and_i_click_update_accredited_provider
+ and_i_click_update_ratifying_provider
end
- def when_i_click_select_an_accredited_provider
- click_link_or_button 'Select an accredited provider'
+ def when_i_click_select_an_accredited_partner
+ click_link_or_button 'Select an accredited partner'
end
- def and_i_create_a_new_accredited_provider
+ def and_i_create_a_new_accredited_partnership
and_there_is_an_accredited_provider_in_the_database
and_i_click_add_accredited_provider_link
and_i_search_for_an_accredited_provider_with_a_valid_query
@@ -54,7 +54,7 @@ def and_i_select_the_provider
end
def and_i_input_some_information
- fill_in 'About the accredited provider', with: 'This is a description'
+ fill_in 'About the accredited partner', with: 'This is a description'
click_continue
end
@@ -76,15 +76,15 @@ def form_title
end
def and_i_click_the_add_accredited_provider_link
- click_link_or_button 'Add at least one accredited provider'
+ click_link_or_button 'Add at least one accredited partner'
end
def and_i_click_add_accredited_provider_link
- click_link_or_button 'Add accredited provider'
+ click_link_or_button 'Add accredited partner'
end
def and_i_click_add_accredited_provider_button
- click_link_or_button 'Add accredited provider'
+ click_link_or_button 'Add accredited partner'
end
def given_i_am_authenticated_as_a_provider_user
@@ -98,13 +98,13 @@ def given_i_am_authenticated_as_a_provider_user
)
end
- def and_i_visit_the_course_details_page_of_a_course_without_an_accredited_provider
+ def and_i_visit_the_course_details_page_of_a_course_without_an_ratifying_provider
publish_provider_courses_details_page.load(
provider_code: provider.provider_code, recruitment_cycle_year: provider.recruitment_cycle_year, course_code: course.course_code
)
end
- alias_method :and_i_revisit_the_course_details_page, :and_i_visit_the_course_details_page_of_a_course_without_an_accredited_provider
+ alias_method :and_i_revisit_the_course_details_page, :and_i_visit_the_course_details_page_of_a_course_without_an_ratifying_provider
def provider
@current_user.providers.first
diff --git a/spec/features/publish/courses/new_accredited_provider_spec.rb b/spec/features/publish/courses/new_accredited_provider_spec.rb
index 2c952020a2..5ad19b2ae9 100644
--- a/spec/features/publish/courses/new_accredited_provider_spec.rb
+++ b/spec/features/publish/courses/new_accredited_provider_spec.rb
@@ -5,11 +5,11 @@
feature 'selection accredited_bodies', { can_edit_current_and_next_cycles: false } do
before do
given_i_am_authenticated_as_a_provider_user
- when_i_visit_the_new_accredited_providers_page
+ when_i_visit_the_new_ratifying_partner_page
end
scenario 'selecting multiple accredited_bodies' do
- when_i_select_an_accredited_provider
+ when_i_select_a_ratifying_partner
and_i_click_continue
then_i_am_met_with_the_applications_open_page
end
@@ -33,16 +33,16 @@ def given_i_am_authenticated_as_a_provider_user
given_i_am_authenticated(user: @user)
end
- def when_i_visit_the_new_accredited_providers_page
- publish_courses_new_accredited_provider_page.load(provider_code: provider.provider_code, recruitment_cycle_year: Settings.current_recruitment_cycle_year, query: accredited_provider_params)
+ def when_i_visit_the_new_ratifying_partner_page
+ publish_courses_new_ratifying_partner_page.load(provider_code: provider.provider_code, recruitment_cycle_year: Settings.current_recruitment_cycle_year, query: accredited_provider_params)
end
- def when_i_select_an_accredited_provider
- publish_courses_new_accredited_provider_page.find("#course_accredited_provider_code_#{@accredited_provider_code.downcase}").click
+ def when_i_select_a_ratifying_partner
+ publish_courses_new_ratifying_partner_page.find("#course_accredited_provider_code_#{@accredited_provider_code.downcase}").click
end
def and_i_click_continue
- publish_courses_new_accredited_provider_page.continue.click
+ publish_courses_new_ratifying_partner_page.continue.click
end
def provider
@@ -56,6 +56,6 @@ def then_i_am_met_with_the_applications_open_page
def then_i_am_met_with_errors
expect(page).to have_content('There is a problem')
- expect(page).to have_content('Select an accredited provider')
+ expect(page).to have_content('Select a ratifying partner')
end
end
diff --git a/spec/features/publish/courses/new_schools_spec.rb b/spec/features/publish/courses/new_schools_spec.rb
index 1f33ef0bac..4b95b3ba47 100644
--- a/spec/features/publish/courses/new_schools_spec.rb
+++ b/spec/features/publish/courses/new_schools_spec.rb
@@ -12,7 +12,7 @@
scenario 'selecting multiple schools' do
when_i_select_a_school
and_i_click_continue
- then_i_am_met_with_the_accredited_provider_page
+ then_i_am_met_with_the_ratifying_partner_page
end
scenario 'invalid entries' do
@@ -48,9 +48,9 @@ def provider
@provider ||= @user.providers.first
end
- def then_i_am_met_with_the_accredited_provider_page
+ def then_i_am_met_with_the_ratifying_partner_page
expect(page).to have_current_path("/publish/organisations/#{provider.provider_code}/#{Settings.current_recruitment_cycle_year}/courses/accredited-provider/new", ignore_query: true)
- expect(page).to have_content('Accredited provider')
+ expect(page).to have_content('Ratifying partner')
end
def then_i_am_met_with_errors
diff --git a/spec/features/publish/how_to_use_this_service_spec.rb b/spec/features/publish/how_to_use_this_service_spec.rb
index 6b74c5ac6d..47a350fdff 100644
--- a/spec/features/publish/how_to_use_this_service_spec.rb
+++ b/spec/features/publish/how_to_use_this_service_spec.rb
@@ -16,8 +16,8 @@
then_i_should_see_the_h1_add_and_remove_users
given_i_click_on_the_how_to_use_this_service_breadcrumb
- when_i_click_on_change_an_accredited_provider_relationship
- then_i_should_see_the_h1_change_an_accredited_provider_relationship
+ when_i_click_on_change_an_accredited_partnership
+ then_i_should_see_the_h1_change_an_accredited_partnership
given_i_click_on_the_how_to_use_this_service_breadcrumb
when_i_click_on_roll_over_courses_to_a_new_recruitment_cycle
@@ -64,12 +64,12 @@ def then_i_should_see_the_h1_add_and_remove_users
expect(page).to have_css('h1', text: 'Add and remove users')
end
- def when_i_click_on_change_an_accredited_provider_relationship
- click_link_or_button 'Change an accredited provider relationship'
+ def when_i_click_on_change_an_accredited_partnership
+ click_link_or_button 'Change an accredited partnership'
end
- def then_i_should_see_the_h1_change_an_accredited_provider_relationship
- expect(page).to have_css('h1', text: 'Change an accredited provider relationship')
+ def then_i_should_see_the_h1_change_an_accredited_partnership
+ expect(page).to have_css('h1', text: 'Change an accredited partnership')
end
def when_i_click_on_roll_over_courses_to_a_new_recruitment_cycle
diff --git a/spec/features/publish/accredited_provider_spec.rb b/spec/features/publish/ratifying_partner_spec.rb
similarity index 73%
rename from spec/features/publish/accredited_provider_spec.rb
rename to spec/features/publish/ratifying_partner_spec.rb
index 4dc5b09d2e..ea150459ec 100644
--- a/spec/features/publish/accredited_provider_spec.rb
+++ b/spec/features/publish/ratifying_partner_spec.rb
@@ -2,26 +2,26 @@
require 'rails_helper'
-feature 'Accredited provider flow', { can_edit_current_and_next_cycles: false } do
+feature 'Ratifying partner flow', { can_edit_current_and_next_cycles: false } do
before do
given_i_am_a_lead_school_provider_user
and_i_visit_the_root_path
- when_i_click_on_the_accredited_provider_tab
+ when_i_click_on_the_accredited_partners_tab
end
- scenario 'i can view the accredited providers tab when there are none' do
- then_i_see_the_correct_text_for_no_accredited_providers
+ scenario 'i can view the accredited partnerships tab when there are none' do
+ then_i_see_the_correct_text_for_no_accredited_partners
end
- scenario 'i can view accredited providers on the index page' do
- and_my_provider_has_accrediting_providers
- and_i_click_on_the_accredited_provider_tab
- then_i_should_see_the_accredited_provider_name_displayed
+ scenario 'i can view accredited partners on the index page' do
+ and_my_provider_has_accrediting_partners
+ and_i_click_on_the_accredited_partners_tab
+ then_i_should_see_the_accredited_partners_name_displayed
end
- scenario 'i can edit accredited providers on the index page' do
- and_my_provider_has_accrediting_providers
- and_i_click_on_the_accredited_provider_tab
+ scenario 'i can edit accredited partners on the index page' do
+ and_my_provider_has_accrediting_partners
+ and_i_click_on_the_accredited_partners_tab
and_i_click_change
when_i_input_some_different_information
@@ -29,24 +29,24 @@
and_i_see_the_success_message
end
- scenario 'i cannot delete accredited providers if they are attached to a course' do
- and_my_provider_has_accrediting_providers
- and_i_click_on_the_accredited_provider_tab
+ scenario 'i cannot delete accredited partners if they are attached to a course' do
+ and_my_provider_has_accrediting_partners
+ and_i_click_on_the_accredited_partners_tab
and_i_click_remove
then_i_should_see_the_cannot_remove_ap_text
end
- scenario 'i can delete accredited providers if they are not attached to a course' do
- and_i_create_a_new_accredited_provider
+ scenario 'i can delete accredited partners if they are not attached to a course' do
+ and_i_create_a_new_accredited_partner
and_i_click_remove
and_i_click_remove_ap
and_i_see_the_remove_success_message
then_i_should_be_taken_to_the_index_page
end
- scenario 'i can search for an accredited provider when they are searchable' do
+ scenario 'i can search for an accredited partners when they are searchable' do
given_there_are_accredited_providers_in_the_database_with_users
- when_i_click_add_accredited_provider
+ when_i_click_add_accredited_partner
and_i_search_with_an_invalid_query
then_i_should_see_an_error_message
@@ -59,7 +59,7 @@
when_i_select_the_provider
and_i_continue_without_entering_a_description
- then_i_should_see_an_error_message('Enter details about the accredited provider')
+ then_i_should_see_an_error_message('Enter details about the accredited partner')
when_i_input_some_information
then_i_should_see_the_information_i_added
@@ -68,18 +68,18 @@
then_i_should_be_taken_to_the_index_page
and_the_accredited_provider_is_saved_to_the_database
and_i_should_see_a_success_message
- and_i_should_see_the_accredited_providers
+ and_i_should_see_the_accredited_partners
end
scenario 'back links behaviour' do
given_i_am_on_the_confirm_page
- when_i_click_the_change_link_for('accredited provider name')
+ when_i_click_the_change_link_for('accredited partner name')
then_i_should_be_taken_to_the_accredited_provider_search_page
when_i_click_the_back_link
then_i_should_be_taken_back_to_the_confirm_page
- when_i_click_the_change_link_for('accredited provider description')
+ when_i_click_the_change_link_for('accredited partner description')
then_i_should_be_taken_to_the_accredited_provider_description_page
when_i_click_the_back_link
@@ -89,20 +89,20 @@
private
def and_i_click_remove_ap
- click_link_or_button 'Remove accredited provider'
+ click_link_or_button 'Remove accredited partner'
end
def then_i_should_see_the_cannot_remove_ap_text
- expect(page).to have_css('h1', text: 'You cannot remove this accredited provider')
+ expect(page).to have_css('h1', text: 'You cannot remove this accredited partner')
end
def and_i_click_remove
click_link_or_button 'Remove'
end
- def and_i_create_a_new_accredited_provider
+ def and_i_create_a_new_accredited_partner
given_there_are_accredited_providers_in_the_database_with_users
- when_i_click_add_accredited_provider
+ when_i_click_add_accredited_partner
when_i_search_for_an_accredited_provider_with_a_valid_query
when_i_select_the_provider
when_i_input_some_information
@@ -113,7 +113,7 @@ def and_i_click_change
click_link_or_button('Change')
end
- def and_i_should_see_the_accredited_providers
+ def and_i_should_see_the_accredited_partners
expect(page).to have_css('.govuk-summary-card', count: 1)
expect(page).to have_content(@accredited_provider.provider_name)
end
@@ -150,22 +150,22 @@ def when_i_click_the_change_link_for(field)
def given_i_am_on_the_confirm_page
given_there_are_accredited_providers_in_the_database_with_users
- when_i_click_add_accredited_provider
+ when_i_click_add_accredited_partner
when_i_search_for_an_accredited_provider_with_a_valid_query
when_i_select_the_provider
when_i_input_some_information
end
def and_i_should_see_a_success_message
- expect(page).to have_content('Accredited provider added')
+ expect(page).to have_content('Accredited partner added')
end
def and_i_see_the_success_message
- expect(page).to have_content('About the accredited provider updated')
+ expect(page).to have_content('About the accredited partner updated')
end
def and_i_see_the_remove_success_message
- expect(page).to have_content('Accredited provider removed')
+ expect(page).to have_content('Accredited partner removed')
end
def then_i_should_be_taken_to_the_index_page
@@ -174,7 +174,7 @@ def then_i_should_be_taken_to_the_index_page
def when_i_confirm_the_changes
expect do
- click_link_or_button 'Add accredited provider'
+ click_link_or_button 'Add accredited partner'
end.to have_enqueued_email(Users::OrganisationMailer, :added_as_an_organisation_to_training_partner)
end
@@ -189,12 +189,12 @@ def then_i_should_see_the_different_information
alias_method :then_i_should_see_the_description, :then_i_should_see_the_information_i_added
def when_i_input_some_information
- fill_in 'About the accredited provider', with: 'This is a description'
+ fill_in 'About the accredited partner', with: 'This is a description'
click_continue
end
def when_i_input_some_different_information
- fill_in 'About the accredited provider', with: 'updates to the AP description'
+ fill_in 'About the accredited partner', with: 'updates to the AP description'
click_link_or_button 'Update description'
end
@@ -243,19 +243,19 @@ def when_i_search_for_an_accredited_provider_with_a_valid_query
click_continue
end
- def when_i_click_add_accredited_provider
- click_link_or_button 'Add accredited provider'
+ def when_i_click_add_accredited_partner
+ click_link_or_button 'Add accredited partner'
end
- def then_i_see_the_correct_text_for_no_accredited_providers
- expect(page).to have_text("There are no accredited providers for #{@provider.provider_name}")
+ def then_i_see_the_correct_text_for_no_accredited_partners
+ expect(page).to have_text("There are no accredited partners for #{@provider.provider_name}")
end
- def when_i_click_on_the_accredited_provider_tab
- click_link_or_button 'Accredited provider'
+ def when_i_click_on_the_accredited_partners_tab
+ click_link_or_button 'Accredited partner'
end
- alias_method :and_i_click_on_the_accredited_provider_tab, :when_i_click_on_the_accredited_provider_tab
+ alias_method :and_i_click_on_the_accredited_partners_tab, :when_i_click_on_the_accredited_partners_tab
def and_i_visit_the_root_path
visit root_path
@@ -276,8 +276,8 @@ def click_continue
alias_method :and_i_continue_without_entering_a_description, :click_continue
- def and_my_provider_has_accrediting_providers
- course = build(:course, accrediting_provider: build(:provider, :accredited_provider, provider_name: 'Accrediting provider name'))
+ def and_my_provider_has_accrediting_partners
+ course = build(:course, accrediting_provider: build(:provider, :accredited_provider, provider_name: 'Accrediting partner name'))
@provider.courses << course
@provider.update(
@@ -287,7 +287,7 @@ def and_my_provider_has_accrediting_providers
)
end
- def then_i_should_see_the_accredited_provider_name_displayed
- expect(page).to have_css('h2', text: 'Accrediting provider name')
+ def then_i_should_see_the_accredited_partners_name_displayed
+ expect(page).to have_css('h2', text: 'Accrediting partner name')
end
end
diff --git a/spec/features/publish/viewing_training_providers_and_their_courses_spec.rb b/spec/features/publish/viewing_training_providers_and_their_courses_spec.rb
index 5d55aca33b..2fa2db16b8 100644
--- a/spec/features/publish/viewing_training_providers_and_their_courses_spec.rb
+++ b/spec/features/publish/viewing_training_providers_and_their_courses_spec.rb
@@ -2,28 +2,28 @@
require 'rails_helper'
-feature 'Viewing courses as an accredited provider', { can_edit_current_and_next_cycles: false } do
+feature 'Viewing courses as an ratifying provider', { can_edit_current_and_next_cycles: false } do
before do
given_i_am_authenticated_as_an_accredited_provider_user
- and_some_courses_exist_with_one_i_accredit
+ and_some_courses_exist_with_one_i_ratify
when_i_visit_the_publish_training_provider_index_page
end
- scenario 'i can see who lists me as their accredited provider' do
+ scenario 'i can see who lists me as their accredited partner' do
then_i_should_see_a_list_of_training_providers
- and_i_should_see_a_count_of_the_courses_i_accredit
+ and_i_should_see_a_count_of_the_courses_i_ratify
end
- scenario 'i can see which courses i am the accredited provider for' do
+ scenario 'i can see which courses for which i am the ratifying provider' do
and_i_click_on_a_training_provider
- then_i_see_the_courses_i_accredit_for
+ then_i_see_the_courses_i_ratify
end
def given_i_am_authenticated_as_an_accredited_provider_user
given_i_am_authenticated(user: create(:user, providers: [create(:provider, :accredited_provider)]))
end
- def and_some_courses_exist_with_one_i_accredit
+ def and_some_courses_exist_with_one_i_ratify
given_a_course_exists(
enrichments: [build(:course_enrichment, :published)],
provider: create(:provider),
@@ -45,7 +45,7 @@ def then_i_should_see_a_list_of_training_providers
expect(publish_training_provider_index_page.training_provider_rows.first.name).to have_text(training_provider.provider_name)
end
- def and_i_should_see_a_count_of_the_courses_i_accredit
+ def and_i_should_see_a_count_of_the_courses_i_ratify
expect(publish_training_provider_index_page.training_provider_rows.first.course_count).to have_text('1')
end
@@ -53,7 +53,7 @@ def and_i_click_on_a_training_provider
publish_training_provider_index_page.training_provider_rows.first.name.click
end
- def then_i_see_the_courses_i_accredit_for
+ def then_i_see_the_courses_i_ratify
expect(publish_training_providers_course_index_page).to be_displayed
expect(publish_training_providers_course_index_page.courses.size).to eq(1)
expect(publish_training_providers_course_index_page.courses.first.name).to have_text(course.name)
diff --git a/spec/features/support/providers/accredited_provider_search/searching_for_an_accredited_provider_spec.rb b/spec/features/support/providers/accredited_provider_search/searching_for_an_accredited_provider_spec.rb
index 879f8198fc..8bd660628c 100644
--- a/spec/features/support/providers/accredited_provider_search/searching_for_an_accredited_provider_spec.rb
+++ b/spec/features/support/providers/accredited_provider_search/searching_for_an_accredited_provider_spec.rb
@@ -22,7 +22,7 @@
when_i_select_the_provider
and_i_continue_without_entering_a_description
- then_i_should_see_an_error_message('Enter details about the accredited provider')
+ then_i_should_see_an_error_message('Enter details about the accredited partner')
when_i_enter_a_description
and_i_confirm_the_changes
@@ -33,13 +33,13 @@
scenario 'back links behaviour' do
when_i_am_on_the_confirm_page
- and_i_click_the_change_link_for('accredited provider name')
+ and_i_click_the_change_link_for('accredited partner name')
then_i_should_be_taken_to_the_accredited_provider_search_page
when_i_click_the_back_link
then_i_should_be_taken_back_to_the_confirm_page
when_i_am_on_the_confirm_page
- and_i_click_the_change_link_for('accredited provider description')
+ and_i_click_the_change_link_for('accredited partner description')
then_i_should_be_taken_to_the_accredited_provider_description_page
when_i_click_the_back_link
then_i_should_be_taken_back_to_the_confirm_page
@@ -109,18 +109,18 @@ def and_i_should_still_see_the_provider_i_searched_for
end
def when_i_enter_a_description
- fill_in 'About the accredited provider', with: 'This is a description'
+ fill_in 'About the accredited partner', with: 'This is a description'
click_continue
end
def and_i_confirm_the_changes
expect do
- click_link_or_button 'Add accredited provider'
+ click_link_or_button 'Add accredited partner'
end.to have_enqueued_email(Users::OrganisationMailer, :added_as_an_organisation_to_training_partner)
end
def and_i_should_see_a_success_message
- expect(page).to have_content('Accredited provider added')
+ expect(page).to have_content('Accredited partner added')
end
def and_i_should_see_the_accredited_providers
diff --git a/spec/features/support/providers/accredited_providers_spec.rb b/spec/features/support/providers/accredited_providers_spec.rb
index f83f5a008a..da127a6c36 100644
--- a/spec/features/support/providers/accredited_providers_spec.rb
+++ b/spec/features/support/providers/accredited_providers_spec.rb
@@ -62,15 +62,15 @@ def and_i_see_the_remove_success_message
def and_i_see_the_remove_success_message; end
def and_i_click_remove_ap
- click_link_or_button 'Remove accredited provider'
+ click_link_or_button 'Remove accredited partner'
end
def and_i_confirm_the_changes
- click_link_or_button 'Add accredited provider'
+ click_link_or_button 'Add accredited partner'
end
def when_i_input_new_information
- fill_in 'About the accredited provider', with: 'New AP description'
+ fill_in 'About the accredited partner', with: 'New AP description'
click_link_or_button 'Continue'
end
@@ -89,7 +89,7 @@ def and_i_search_for_an_accredited_provider_with_a_valid_query
end
def and_i_click_add_accredited_provider
- click_link_or_button 'Add accredited provider'
+ click_link_or_button 'Add accredited partner'
end
def and_i_click_remove
@@ -97,7 +97,7 @@ def and_i_click_remove
end
def then_i_should_see_the_cannot_remove_text
- expect(page).to have_css('h1', text: 'You cannot remove this accredited provider')
+ expect(page).to have_css('h1', text: 'You cannot remove this accredited partner')
end
def given_i_am_authenticated_as_an_admin_user
@@ -134,7 +134,7 @@ def when_i_click_the_back_link
end
def and_i_see_the_success_message
- expect(page).to have_content('About the accredited provider updated')
+ expect(page).to have_content('About the accredited partner updated')
end
def then_i_should_see_the_updated_description
@@ -142,12 +142,12 @@ def then_i_should_see_the_updated_description
end
def when_i_input_updated_description
- fill_in 'About the accredited provider', with: 'update the AP description'
+ fill_in 'About the accredited partner', with: 'update the AP description'
click_link_or_button 'Update description'
end
def then_i_see_the_correct_text_for_no_accredited_providers
- expect(page).to have_text("There are no accredited providers for #{@provider.provider_name}")
+ expect(page).to have_text("There are no accredited partners for #{@provider.provider_name}")
end
def and_i_click_on_the_accredited_provider_tab
@@ -155,7 +155,7 @@ def and_i_click_on_the_accredited_provider_tab
end
def and_my_provider_has_accrediting_providers
- course = build(:course, accrediting_provider: build(:provider, :accredited_provider, provider_name: 'Accrediting provider name'))
+ course = build(:course, accrediting_provider: build(:provider, :accredited_provider, provider_name: 'Accrediting partner name'))
@provider.courses << course
@provider.update(
@@ -168,7 +168,7 @@ def and_my_provider_has_accrediting_providers
def then_i_should_see_the_accredited_provider_name_displayed
expect(page).to have_css(
'h2.govuk-summary-card__title a.govuk-link',
- text: 'Accrediting provider name'
+ text: 'Accrediting partner name'
)
end
end
diff --git a/spec/helpers/navigation_bar_helper_spec.rb b/spec/helpers/navigation_bar_helper_spec.rb
index aa3f8dcbe7..2d35f01fb1 100644
--- a/spec/helpers/navigation_bar_helper_spec.rb
+++ b/spec/helpers/navigation_bar_helper_spec.rb
@@ -8,13 +8,13 @@
helper.navigation_items(provider)
end
- let(:accredited_provider_item) { subject.find { |item| item[:name] == 'Accredited providers' } }
+ let(:accredited_partnerships_item) { subject.find { |item| item[:name] == 'Accredited partnerships' } }
context 'when provider is an accredited provider' do
let(:provider) { create(:provider, :accredited_provider) }
it 'does not include accredited_provider in items' do
- expect(accredited_provider_item).to be_nil
+ expect(accredited_partnerships_item).to be_nil
end
end
@@ -22,11 +22,11 @@
let(:provider) { create(:provider) }
it 'includes accredited_provider in items' do
- expect(accredited_provider_item).not_to be_nil
+ expect(accredited_partnerships_item).not_to be_nil
end
it 'includes the correct link to accredited providers' do
- expect(accredited_provider_item[:url]).to eq publish_provider_recruitment_cycle_accredited_providers_path(provider.provider_code, provider.recruitment_cycle.year)
+ expect(accredited_partnerships_item[:url]).to eq publish_provider_recruitment_cycle_accredited_providers_path(provider.provider_code, provider.recruitment_cycle.year)
end
end
end
diff --git a/spec/lib/user_notification_preferences_spec.rb b/spec/lib/user_notification_preferences_spec.rb
index 7fd907e04d..c04a3b897b 100644
--- a/spec/lib/user_notification_preferences_spec.rb
+++ b/spec/lib/user_notification_preferences_spec.rb
@@ -202,8 +202,8 @@
end
end
- context 'user has changed accredited provider associations' do
- context 'accredited provider removed' do
+ context 'user has changed accredited partnerships' do
+ context 'accredited partnership removed' do
before do
user
other_user
@@ -222,7 +222,7 @@
end
end
- context 'accredited provider added' do
+ context 'accredited partnership created' do
let(:accredited_provider_three) { create(:provider, :accredited_provider) }
before do
diff --git a/spec/models/course/publishable_spec.rb b/spec/models/course/publishable_spec.rb
index 6f4fae5245..4df135b0be 100644
--- a/spec/models/course/publishable_spec.rb
+++ b/spec/models/course/publishable_spec.rb
@@ -15,7 +15,7 @@
expect(course).not_to be_publishable
expect(course.errors.messages).to eq(
{ sites: ['^Select at least one school'],
- accrediting_provider: ['Select an accredited provider'],
+ accrediting_provider: ['Select a ratifying partner'],
about_course: ['^Enter information about this course'],
how_school_placements_work: ['^Enter details about how placements work'],
course_length: ['^Enter a course length'],
@@ -24,7 +24,7 @@
)
end
- context 'when associated accredited provider is no longer accredited' do
+ context 'when associated accredited partner is no longer accredited' do
let(:enrichment) { build(:course_enrichment, :subsequent_draft, created_at: 1.day.ago) }
let(:primary_with_mathematics) { find_or_create(:primary_subject, :primary_with_mathematics) }
let(:course) do
diff --git a/spec/models/course_spec.rb b/spec/models/course_spec.rb
index cf95fbf3b9..84b920a322 100644
--- a/spec/models/course_spec.rb
+++ b/spec/models/course_spec.rb
@@ -1320,7 +1320,7 @@
let!(:accredited_provider) { create(:provider, :accredited_provider) }
let!(:accredited_course) { create(:course, accrediting_provider: accredited_provider) }
- it 'returns courses for which the provider is the accredited provider' do
+ it 'returns courses for which the provider is the ratifying provider' do
expect(subject).to contain_exactly(accredited_course)
end
end
diff --git a/spec/support/page_objects/find/course_show.rb b/spec/support/page_objects/find/course_show.rb
index cea512025e..c73769a80c 100644
--- a/spec/support/page_objects/find/course_show.rb
+++ b/spec/support/page_objects/find/course_show.rb
@@ -8,7 +8,7 @@ class CourseShow < PageObjects::Base
element :page_heading, '.govuk-heading-xl'
element :sub_title, '[data-qa=course__provider_name]'
element :extended_qualification_descriptions, '[data-qa=course__extended_qualification_descriptions]'
- element :accredited_provider, '[data-qa=course__accredited_provider]'
+ element :accredited_provider, '[data-qa=course__ratifying_partner]'
element :provider_website, '[data-qa=course__provider_website]'
element :vacancies, '[data-qa=course__vacancies]'
element :about_course, '[data-qa=course__about_course]'
diff --git a/spec/support/page_objects/publish/course_confirmation.rb b/spec/support/page_objects/publish/course_confirmation.rb
index 7ae0af9e97..c14e441ce7 100644
--- a/spec/support/page_objects/publish/course_confirmation.rb
+++ b/spec/support/page_objects/publish/course_confirmation.rb
@@ -24,7 +24,7 @@ class SummaryList < SitePrism::Section
section :study_mode, SummaryList, '[data-qa=course__study_mode]'
section :schools, SummaryList, '[data-qa=course__schools]'
section :study_sites, SummaryList, '[data-qa=course__study_sites]'
- section :accredited_provider, SummaryList, '[data-qa=course__accredited_provider]'
+ section :accredited_provider, SummaryList, '[data-qa=course__ratifying_partner]'
section :applications_open, SummaryList, '[data-qa=course__applications_open]'
section :start_date, SummaryList, '[data-qa=course__start_date]'
section :name, SummaryList, '[data-qa=course__name]'
diff --git a/spec/support/page_objects/publish/course_preview.rb b/spec/support/page_objects/publish/course_preview.rb
index 9fb4565128..e423958db9 100644
--- a/spec/support/page_objects/publish/course_preview.rb
+++ b/spec/support/page_objects/publish/course_preview.rb
@@ -7,7 +7,7 @@ class CoursePreview < PageObjects::Base
element :sub_title, '[data-qa=course__provider_name]'
element :description, '[data-qa=course__description]'
- element :accredited_provider, '[data-qa=course__accredited_provider]'
+ element :accredited_provider, '[data-qa=course__ratifying_partner]'
element :provider_website, '[data-qa=course__provider_website]'
element :vacancies, '[data-qa=course__vacancies]'
element :about_course, '[data-qa=course__about_course]'
diff --git a/spec/support/page_objects/publish/courses/accredited_providers.rb b/spec/support/page_objects/publish/courses/accredited_providers.rb
index cfdb2b7291..5c4169f546 100644
--- a/spec/support/page_objects/publish/courses/accredited_providers.rb
+++ b/spec/support/page_objects/publish/courses/accredited_providers.rb
@@ -6,7 +6,7 @@ module Courses
class AccreditedProviders < PageObjects::Base
set_url '/publish/organisations/{provider_code}/{recruitment_cycle_year}/courses/{course_code}/accredited-provider'
- elements :suggested_accredited_bodies, '[data-qa="course__accredited_provider_option"]'
+ elements :suggested_accredited_bodies, '[data-qa="course__ratifying_partner_option"]'
element :add_new_link, '[data-qa="course__add"]'
element :update_button, 'input[type=submit]'
diff --git a/spec/support/page_objects/publish/courses/new_accredited_provider.rb b/spec/support/page_objects/publish/courses/new_ratifying_partner.rb
similarity index 84%
rename from spec/support/page_objects/publish/courses/new_accredited_provider.rb
rename to spec/support/page_objects/publish/courses/new_ratifying_partner.rb
index f31ddc655e..96eb3312cf 100644
--- a/spec/support/page_objects/publish/courses/new_accredited_provider.rb
+++ b/spec/support/page_objects/publish/courses/new_ratifying_partner.rb
@@ -3,10 +3,10 @@
module PageObjects
module Publish
module Courses
- class NewAccreditedProvider < PageObjects::Base
+ class NewRatifyingPartner < PageObjects::Base
set_url '/publish/organisations/{provider_code}/{recruitment_cycle_year}/courses/accredited-provider/new{?query*}'
- elements :suggested_accredited_bodies, '[data-qa="course__accredited_provider_option"]'
+ elements :suggested_accredited_bodies, '[data-qa="course__ratifying_partner_option"]'
element :continue, '[data-qa="course__save"]'
element :about_section_input, 'textarea'
diff --git a/spec/support/page_objects/publish/provider_courses_details.rb b/spec/support/page_objects/publish/provider_courses_details.rb
index 0d117e1286..0e349ca058 100644
--- a/spec/support/page_objects/publish/provider_courses_details.rb
+++ b/spec/support/page_objects/publish/provider_courses_details.rb
@@ -19,7 +19,7 @@ class ProviderCoursesDetails < PageObjects::Base
section :funding, Sections::SummaryList, '[data-qa="course__funding"]'
section :study_mode, Sections::SummaryList, '[data-qa="course__study_mode"]'
section :schools, Sections::SummaryList, '[data-qa="course__schools"]'
- section :accredited_provider, Sections::SummaryList, '[data-qa="course__accredited_provider"]'
+ section :accredited_provider, Sections::SummaryList, '[data-qa="course__ratifying_partner"]'
section :applications_open, Sections::SummaryList, '[data-qa="course__applications_open"]'
section :start_date, Sections::SummaryList, '[data-qa="course__start_date"]'
section :contact_support_link, Sections::SummaryList, '[data-qa="course__contact_support_link"]'