Skip to content

Commit

Permalink
Fix borlabs tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
sammacbeth committed Nov 8, 2022
1 parent 64db1b7 commit ecc80ef
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 12 deletions.
49 changes: 40 additions & 9 deletions rules/autoconsent/borlabs.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,43 @@
{
"name": "borlabs",
"prehideSelectors": ["#BorlabsCookieBox"],
"detectCmp": [{ "exists": "._brlbs-block-content"}],
"detectPopup": [{ "visible": "._brlbs-bar-wrap,._brlbs-box-wrap" }],
"optIn": [{ "click": "a[data-cookie-accept-all]" }],
"detectCmp": [
{
"exists": "._brlbs-block-content"
}
],
"detectPopup": [
{
"visible": "._brlbs-bar-wrap,._brlbs-box-wrap"
}
],
"optIn": [
{
"click": "a[data-cookie-accept-all]"
}
],
"optOut": [
{
"click": "a[data-cookie-refuse]"
}
]
}
{
"click": "a[data-cookie-individual]"
},
{
"waitForVisible": ".cookie-preference"
},
{
"click": "input[data-borlabs-cookie-checkbox]:checked",
"all": true,
"optional": true
},
{
"click": "#CookiePrefSave"
},
{
"wait": 500
}
],
"prehideSelectors": [
"#BorlabsCookieBox"
],
"test": [{
"eval": "!JSON.parse(decodeURIComponent(document.cookie.split(';').find(c => c.indexOf('borlabs-cookie') !== -1).split('=', 2)[1])).consents.statistics"
}]
}
6 changes: 3 additions & 3 deletions tests/borlabs.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import generateCMPTests from "../playwright/runner";

generateCMPTests('borlabs', [
'https://reitschuster.de'], {
skipRegions: ["US"]
}
'https://www.experto.de/', 'https://www.kesselheld.de/'], {
skipRegions: ["US"]
}
);
1 change: 1 addition & 0 deletions tests/sourcepoint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ generateCMPTests('Sourcepoint-frame', [
"https://www.brianmadden.com/",
"https://www.csoonline.com/blogs",
"https://www.independent.co.uk/",
"https://reitschuster.de/"
], {
skipRegions: ["US", "GB"],
});
Expand Down

0 comments on commit ecc80ef

Please sign in to comment.