Skip to content

Commit

Permalink
Add cmp wpcc notice banner rule and test (#157)
Browse files Browse the repository at this point in the history
Co-authored-by: euw-arasolofotsara1 <[email protected]>
  • Loading branch information
icodebyamanda and euw-arasolofotsara1 authored May 15, 2023
1 parent 1513e2c commit f4eb89b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions rules/autoconsent/wpcc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "wpcc",
"cosmetic": true,
"prehideSelectors": [".wpcc-container"],
"detectCmp": [{ "exists": ".wpcc-container" }],
"detectPopup": [{ "exists": ".wpcc-container .wpcc-message" }],
"optIn": [{ "click": ".wpcc-compliance .wpcc-btn" }],
"optOut": [{ "hide": [".wpcc-container"] }]
}
10 changes: 10 additions & 0 deletions tests/wpcc.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import generateCMPTests from "../playwright/runner";

generateCMPTests('wpcc', [
'https://www.aznude.com/',
'https://www.iihs.org/',
'https://www.e-grammar.org/',
'http://thisvid.com/',
'https://www.fintrux.com/',
'https://hdpornohub.com/',
], {});

0 comments on commit f4eb89b

Please sign in to comment.