diff --git a/spec/features/content_store_organisations_spec.rb b/spec/features/content_store_organisations_spec.rb index 98fa8fb3e..17409dbfc 100644 --- a/spec/features/content_store_organisations_spec.rb +++ b/spec/features/content_store_organisations_spec.rb @@ -15,7 +15,7 @@ end scenario "renders page title" do - expect(page.has_css?(".gem-c-title__text", text: organisations_content_hash[:title])).to be(true) + expect(page.has_css?(".gem-c-heading__text", text: organisations_content_hash[:title])).to be(true) end scenario "has autodiscovery links to the API" do diff --git a/spec/features/ministers_spec.rb b/spec/features/ministers_spec.rb index 121fb9dbb..2e1052b25 100644 --- a/spec/features/ministers_spec.rb +++ b/spec/features/ministers_spec.rb @@ -11,7 +11,7 @@ end scenario "renders page title" do - expect(page).to have_selector(".gem-c-title__text", text: I18n.t("ministers.title")) + expect(page).to have_selector(".gem-c-heading__text", text: I18n.t("ministers.title")) end scenario "renders the lead paragraph with anchor links" do diff --git a/spec/features/step_nav_page_spec.rb b/spec/features/step_nav_page_spec.rb index a8926ebd2..5cdeff297 100644 --- a/spec/features/step_nav_page_spec.rb +++ b/spec/features/step_nav_page_spec.rb @@ -13,8 +13,7 @@ end it "renders the title" do - expect(page).to have_selector(".gem-c-title") - expect(page).to have_selector(".gem-c-title__text", text: "Learn to drive a car: step by step") + expect(page).to have_selector(".gem-c-heading__text", text: "Learn to drive a car: step by step") end it "renders the step by step navigation component" do diff --git a/spec/features/world_index_spec.rb b/spec/features/world_index_spec.rb index b1713a5d6..cf99ec578 100644 --- a/spec/features/world_index_spec.rb +++ b/spec/features/world_index_spec.rb @@ -17,7 +17,7 @@ end scenario "renders the page title" do - expect(page).to have_selector(".gem-c-title__text", text: "Help and services around the world") + expect(page).to have_selector(".gem-c-heading__text", text: "Help and services around the world") end scenario "renders a link to all foreign office posts" do diff --git a/spec/support/courts_pages_helper.rb b/spec/support/courts_pages_helper.rb index 8c2d4b242..79e603334 100644 --- a/spec/support/courts_pages_helper.rb +++ b/spec/support/courts_pages_helper.rb @@ -39,7 +39,7 @@ def the_correct_title def the_courts_title expect(page).to have_title("#{@title} - GOV.UK") - expect(page).to have_selector(".gem-c-title__text", text: @title) + expect(page).to have_selector(".gem-c-heading__text", text: @title) end def and_featured_links