diff --git a/rules/autoconsent/womenshealthmag-us.json b/rules/autoconsent/womenshealthmag-us.json new file mode 100644 index 00000000..bab63663 --- /dev/null +++ b/rules/autoconsent/womenshealthmag-us.json @@ -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\"])" + } + ] +} diff --git a/tests/womenshealthmag-us.spec.ts b/tests/womenshealthmag-us.spec.ts new file mode 100644 index 00000000..199f2a00 --- /dev/null +++ b/tests/womenshealthmag-us.spec.ts @@ -0,0 +1,3 @@ +import generateCMPTests from '../playwright/runner'; + +generateCMPTests('womenshealthma-us', ['https://womenshealthmag.com']);