Skip to content

Commit

Permalink
cosmetic rule for womenshealthmag
Browse files Browse the repository at this point in the history
  • Loading branch information
muodov committed Jan 24, 2025
1 parent e41e52f commit 693abc7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
31 changes: 31 additions & 0 deletions rules/autoconsent/womenshealthmag-us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "womenshealthmag-us",
"vendorUrl": "https://womenshealthmag.com",
"cosmetic": true,
"runContext": {
"main": true,
"frame": false,
"urlPattern": "^https://(www\\.)?womenshealthmag\\.com/"
},
"prehideSelectors": ["[status=open]:has([aria-label=\"Privacy Disclosure\"])"],
"detectCmp": [
{
"exists": "[status=open]:has([aria-label=\"Privacy Disclosure\"])"
}
],
"detectPopup": [
{
"visible": "[status=open]:has([aria-label=\"Privacy Disclosure\"])"
}
],
"optIn": [
{
"waitForThenClick": "[status=open]:has([aria-label=\"Privacy Disclosure\"]) button"
}
],
"optOut": [
{
"hide": "[status=open]:has([aria-label=\"Privacy Disclosure\"])"
}
]
}
3 changes: 3 additions & 0 deletions tests/womenshealthmag-us.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import generateCMPTests from '../playwright/runner';

generateCMPTests('womenshealthma-us', ['https://womenshealthmag.com']);

0 comments on commit 693abc7

Please sign in to comment.