Allow managing versions of cookies consent

This can be useful when adding a new cookie or making
modifications that require asking the user again.
This commit is contained in:
taitus
2024-12-09 16:36:06 +01:00
parent 5ffaf7a80e
commit 018b00cd6e
10 changed files with 35 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ describe Layout::CookiesConsent::BannerComponent do
before { Setting["feature.cookies_consent"] = true }
it "does not render the banner when cookies were accepted" do
vc_test_request.cookies[:cookies_consent] = "essential"
vc_test_request.cookies[:cookies_consent_v1] = "essential"
render_inline Layout::CookiesConsent::BannerComponent.new