diff --git a/spec/system/consumer/footer_links_spec.rb b/spec/system/consumer/footer_links_spec.rb index 0ffb86c133..bc052a615a 100644 --- a/spec/system/consumer/footer_links_spec.rb +++ b/spec/system/consumer/footer_links_spec.rb @@ -25,6 +25,19 @@ describe "Footer Links" do it_behaves_like "opens the cookie policy modal", "How We Use Cookies" end + + context "when spanish is selected" do + before do + visit root_path + find('.language-switcher').click + within '.language-switcher .dropdown' do + find('li a[href="/locales/es"]').click + end + click_link "política de cookies" + end + + it_behaves_like "opens the cookie policy modal", "Cómo utilizamos las cookies" + end end describe "privacy policy link" do