Skip to content

Commit

Permalink
Translate "Skip contents" link to Welsh
Browse files Browse the repository at this point in the history
  • Loading branch information
unoduetre committed Nov 29, 2024
1 parent ef31d53 commit 96efcfa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/locales/cy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ cy:
title: Dydy'r dudalen rydych chi'n chwilio amdani ddim ar gael mwyach
guide:
pages_in_guide: Tudalennau yn y canllaw hwn
skip_contents:
skip_contents: Sgipio cynnwys
html_publication:
print_meta_data:
available_at: Mae'r cyhoeddiad hwn ar gael yn %{url}
Expand Down
12 changes: 12 additions & 0 deletions test/integration/guide_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ class GuideTest < ActionDispatch::IntegrationTest
assert page.has_css?(".govuk-link.govuk-link--no-visited-state[href$='/print']", text: "View a printable version of the whole guide")
end

test "skip link in English" do
setup_and_visit_content_item("guide")

assert page.has_css?(".gem-c-skip-link", text: "Skip contents")
end

test "translated skip link" do
setup_and_visit_content_item("guide", { "locale" => "cy" })

assert page.has_css?(".gem-c-skip-link", text: "Sgipio cynnwys")
end

test "draft access tokens are appended to part links within navigation" do
setup_and_visit_content_item_with_params("guide", "?token=some_token")

Expand Down

0 comments on commit 96efcfa

Please sign in to comment.