diff --git a/app/views/content_items/service_sign_in/_choose_sign_in.html.erb b/app/views/content_items/service_sign_in/_choose_sign_in.html.erb index 88796cc4e..1385ae3db 100644 --- a/app/views/content_items/service_sign_in/_choose_sign_in.html.erb +++ b/app/views/content_items/service_sign_in/_choose_sign_in.html.erb @@ -30,5 +30,5 @@ <% end %> - <%= render 'govuk_component/button', text: t('service_sign_in.continue'), margin_bottom: true %> + <%= render 'govuk_publishing_components/components/button', text: t('service_sign_in.continue'), margin_bottom: true %> <% end %> diff --git a/app/views/content_items/specialist_document.html.erb b/app/views/content_items/specialist_document.html.erb index 979217410..9e6f20a0c 100644 --- a/app/views/content_items/specialist_document.html.erb +++ b/app/views/content_items/specialist_document.html.erb @@ -22,7 +22,7 @@ <%= render 'govuk_component/govspeak', @content_item.govspeak_body %> <% if @content_item.continuation_link %> <%= render( - 'govuk_component/button', + 'govuk_publishing_components/components/button', start: true, href: @content_item.continuation_link, text: "Find out more", diff --git a/test/integration/service_sign_in/choose_sign_in_test.rb b/test/integration/service_sign_in/choose_sign_in_test.rb index c6a41385a..1715084e7 100644 --- a/test/integration/service_sign_in/choose_sign_in_test.rb +++ b/test/integration/service_sign_in/choose_sign_in_test.rb @@ -50,7 +50,7 @@ class ChooseSignInTest < ActionDispatch::IntegrationTest assert page.has_css?(".gem-c-radio__label__text", text: "Create an account") end end - assert page.has_css?(shared_component_selector('button'), text: "Continue") + assert page.has_css?(".gem-c-button", text: "Continue") end end @@ -120,7 +120,7 @@ class ChooseSignInTest < ActionDispatch::IntegrationTest end end - assert page.has_css?(shared_component_selector('button'), text: "Bwrw ymlaen") + assert page.has_css?(".gem-c-button", text: "Bwrw ymlaen") end end diff --git a/test/integration/specialist_document_test.rb b/test/integration/specialist_document_test.rb index 6bdc6f051..3293c160e 100644 --- a/test/integration/specialist_document_test.rb +++ b/test/integration/specialist_document_test.rb @@ -159,13 +159,8 @@ def assert_nested_content_item(heading) test 'renders start button' do setup_and_visit_content_item('business-finance-support-scheme') - assert_component_locals( - 'button', - start: true, - href: 'http://www.bigissueinvest.com', - info_text: 'on the Big Issue Invest website', - text: 'Find out more' - ) + assert page.has_css?(".gem-c-button.gem-c-button--start[href='http://www.bigissueinvest.com']", text: "Find out more") + assert page.has_css?(".gem-c-button__info-text", text: "on the Big Issue Invest website") end test 'does not render a contents list if there are fewer than three items in the contents list' do