mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-19 04:49:15 +00:00
Make cookies test more stable
This commit is contained in:
@@ -9,7 +9,9 @@ feature "Cookies", js: true do
|
||||
end
|
||||
|
||||
scenario "does not show after cookies are accepted" do
|
||||
sleep 1
|
||||
click_button I18n.t('legal.cookies_banner.cookies_accept_button')
|
||||
sleep 2
|
||||
expect_not_visible_cookies_banner
|
||||
|
||||
visit root_path
|
||||
@@ -18,6 +20,7 @@ feature "Cookies", js: true do
|
||||
|
||||
scenario "banner contains cookies policy link that opens coookies policy page and closes banner" do
|
||||
find("p.ng-binding > a", :text => "cookies policy").click
|
||||
sleep 1
|
||||
expect_visible_cookies_policy_page
|
||||
expect_not_visible_cookies_banner
|
||||
|
||||
|
||||
Reference in New Issue
Block a user