mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
Merge pull request #10416 from filipefurtad0/flaky_footer_spec
Addresses flakyness on footer links spec
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
require 'system_helper'
|
||||
|
||||
describe "Footer Links", js: true do
|
||||
describe "Footer Links" do
|
||||
describe "policy link" do
|
||||
it "showing" do
|
||||
visit root_path
|
||||
@@ -12,7 +12,9 @@ describe "Footer Links", js: true do
|
||||
it "opens cookies policy page" do
|
||||
visit root_path
|
||||
click_link "cookies policy"
|
||||
expect(page).to have_content I18n.t('legal.cookies_policy.header')
|
||||
within "div.reveal-modal" do
|
||||
expect(page).to have_content "How We Use Cookies"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user