Skip to content

Commit

Permalink
Support Acris CMP (#464)
Browse files Browse the repository at this point in the history
* feat: arcris

refs https://www.acris.at/media/77/32/3c/1709126654/SW6_Doku_Cookie-Richtlinie-Pro_Tag-Manager_V61_EN.pdf

* chore: typo

* test: add acris.at to acris tests

* add a delay in acris rule to mitigate a race condition

---------

Co-authored-by: Maxim Tsoy <[email protected]>
  • Loading branch information
seia-soto and muodov authored Jul 23, 2024
1 parent e07283e commit a36e382
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
38 changes: 38 additions & 0 deletions rules/autoconsent/acris.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "acris",
"prehideSelectors": ["div.acris-cookie-consent"],
"detectCmp": [
{
"exists": "[data-acris-cookie-consent]"
}
],
"detectPopup": [
{
"visible": ".acris-cookie-consent.is--modal"
}
],
"optIn": [
{
"waitForVisible": "#ccConsentAcceptAllButton",
"check": "any"
},
{
"wait": 500
},
{
"waitForThenClick": "#ccConsentAcceptAllButton"
}
],
"optOut": [
{
"waitForVisible": "#ccAcceptOnlyFunctional",
"check": "any"
},
{
"wait": 500
},
{
"waitForThenClick": "#ccAcceptOnlyFunctional"
}
]
}
6 changes: 6 additions & 0 deletions tests/arcris.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import generateCMPTests from "../playwright/runner";

generateCMPTests('acris', [
'https://www.acris.at/',
'https://www.arctic.de/en/'
], {});

0 comments on commit a36e382

Please sign in to comment.