From 761a6731dbb6f0c86fd1c7021032fb54c4fa8bbc Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Fri, 10 Feb 2023 11:18:07 +0000 Subject: [PATCH] Sets conctext: asserts within the modal --- spec/system/consumer/footer_links_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/system/consumer/footer_links_spec.rb b/spec/system/consumer/footer_links_spec.rb index ddbfa5ef5b..4685b09895 100644 --- a/spec/system/consumer/footer_links_spec.rb +++ b/spec/system/consumer/footer_links_spec.rb @@ -12,7 +12,9 @@ describe "Footer Links" do it "opens cookies policy page" do visit root_path click_link "cookies policy" - expect(page).to have_content "How We Use Cookies" + within "div.reveal-modal" do + expect(page).to have_content "How We Use Cookies" + end end end