From e97cd0a1fd8cbeb7c1370a495e82b31945001f73 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Tue, 14 Feb 2023 14:48:57 +0100 Subject: [PATCH] That particular spec is actually failing ; this must be solved --- spec/system/consumer/footer_links_spec.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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