<% end %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index f26b58e9a..248484c68 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -25,7 +25,6 @@ en:
short_ordinal: '%e %B %Y'
common:
last_updated: "Last updated"
- translations: "Translations"
components:
related_navigation:
collections: "Collection"
diff --git a/test/components/translation_nav_test.rb b/test/components/translation_nav_test.rb
deleted file mode 100644
index 61ec1c21b..000000000
--- a/test/components/translation_nav_test.rb
+++ /dev/null
@@ -1,72 +0,0 @@
-require 'component_test_helper'
-
-class TranslationNavTest < ComponentTestCase
- def component_name
- "translation-nav"
- end
-
- def multiple_translations
- [
- {
- locale: 'en',
- base_path: '/en',
- text: 'English',
- active: true
- },
- {
- locale: 'hi',
- base_path: '/hi',
- text: 'हिंदी',
- }
- ]
- end
-
- test "renders nothing when no translations are given" do
- assert_empty render_component({})
- end
-
- test "renders nothing when only one translation given" do
- assert_empty render_component(
- translations: [
- {
- locale: 'en',
- base_path: '/en',
- text: 'English',
- active: true
- }
- ]
- )
- end
-
- test "renders all items in a list" do
- render_component(translations: multiple_translations)
- assert_select ".app-c-translation-nav__list-item", count: multiple_translations.length
- end
-
- test "renders an active item as text without a link" do
- render_component(translations: multiple_translations)
- assert_select ".app-c-translation-nav__list-item :not(a)", text: "English"
- assert_select "a[href=\"/en\"]", false, "An active item should not be a link"
- end
-
- test "renders inactive items as a link with locale, base path and text" do
- render_component(translations: multiple_translations)
- assert_select ".app-c-translation-nav__list-item a[lang='hi'][href='/hi']", text: "हिंदी"
- end
-
- test "identifies the language of the text" do
- render_component(translations: multiple_translations)
- assert_select "span[lang='en']", text: "English"
- assert_select "a[lang='hi']", text: "हिंदी"
- end
-
- test "identifies the language of the target page" do
- render_component(translations: multiple_translations)
- assert_select "a[hreflang='hi']", text: "हिंदी"
- end
-
- test "is labelled as translation navigation" do
- render_component(translations: multiple_translations)
- assert_select "nav[role='navigation'][aria-label='Translations']"
- end
-end
diff --git a/test/integration/case_study_test.rb b/test/integration/case_study_test.rb
index b44f37494..98b8d4c09 100644
--- a/test/integration/case_study_test.rb
+++ b/test/integration/case_study_test.rb
@@ -11,7 +11,7 @@ class CaseStudyTest < ActionDispatch::IntegrationTest
assert_has_component_title(@content_item["title"])
assert page.has_text?(@content_item["description"])
- assert page.has_css?('.app-c-translation-nav')
+ assert page.has_css?('.gem-c-translation-nav')
end
test "withdrawn case study" do
diff --git a/test/integration/corporate_information_page_test.rb b/test/integration/corporate_information_page_test.rb
index 63b8108ed..61c8f29f5 100644
--- a/test/integration/corporate_information_page_test.rb
+++ b/test/integration/corporate_information_page_test.rb
@@ -69,7 +69,7 @@ class CorporateInformationPageTest < ActionDispatch::IntegrationTest
test "includes translations" do
setup_and_visit_content_item('corporate_information_page_translated_custom_logo')
- assert page.has_css?('.app-c-translation-nav')
+ assert page.has_css?('.gem-c-translation-nav')
end
test "renders an organisation logo" do
diff --git a/test/integration/detailed_guide_test.rb b/test/integration/detailed_guide_test.rb
index 7bd21a3fe..28ea24747 100644
--- a/test/integration/detailed_guide_test.rb
+++ b/test/integration/detailed_guide_test.rb
@@ -69,7 +69,7 @@ class DetailedGuideTest < ActionDispatch::IntegrationTest
assert_has_component_title(@content_item["title"])
assert page.has_text?(@content_item["description"])
- assert page.has_css?('.app-c-translation-nav')
+ assert page.has_css?('.gem-c-translation-nav')
end
test "renders a contents list" do
diff --git a/test/integration/news_article_test.rb b/test/integration/news_article_test.rb
index bf1034754..d802ba1ed 100644
--- a/test/integration/news_article_test.rb
+++ b/test/integration/news_article_test.rb
@@ -28,8 +28,8 @@ class NewsArticleTest < ActionDispatch::IntegrationTest
test "renders translation links when there is more than one translation" do
setup_and_visit_content_item("news_article")
- assert page.has_css?(".app-c-translation-nav")
- assert page.has_css?(".app-c-translation-nav__list-item")
+ assert page.has_css?(".gem-c-translation-nav")
+ assert page.has_css?(".gem-c-translation-nav__list-item")
assert page.has_link?("ردو", href: "/government/news/christmas-2016-prime-ministers-message.ur")
end
diff --git a/test/integration/speech_test.rb b/test/integration/speech_test.rb
index 941a7546c..778cb8c15 100644
--- a/test/integration/speech_test.rb
+++ b/test/integration/speech_test.rb
@@ -14,7 +14,7 @@ class SpeechTest < ActionDispatch::IntegrationTest
assert_has_component_title(@content_item["title"])
assert page.has_text?(@content_item["description"])
- assert page.has_css?('.app-c-translation-nav')
+ assert page.has_css?('.gem-c-translation-nav')
end
test "renders metadata and document footer, including speaker" do
diff --git a/test/integration/world_location_news_article_test.rb b/test/integration/world_location_news_article_test.rb
index 515004b23..3f1b56cf1 100644
--- a/test/integration/world_location_news_article_test.rb
+++ b/test/integration/world_location_news_article_test.rb
@@ -24,8 +24,8 @@ class WorldLocationNewsArticleTest < ActionDispatch::IntegrationTest
test "renders translation links when there is more than one translation" do
setup_and_visit_content_item("world_location_news_article_with_multiple_translations")
- assert page.has_css?(".app-c-translation-nav")
- assert page.has_css?(".app-c-translation-nav__list-item")
+ assert page.has_css?(".gem-c-translation-nav")
+ assert page.has_css?(".gem-c-translation-nav__list-item")
assert page.has_content?("English हिंदी 日本語 中文 中文")