Skip to content

Commit

Permalink
Add a rule for yahoo pop-up
Browse files Browse the repository at this point in the history
  • Loading branch information
muodov committed Dec 1, 2023
1 parent d288d68 commit a80d38a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions rules/autoconsent/yahoo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Yahoo",
"runContext": {
"urlPattern": "^https://consent\\.yahoo\\.com/v2/"
},
"prehideSelectors": ["#reject-all"],
"detectCmp": [{ "exists": "#consent-page" }],
"detectPopup": [{ "visible": "#consent-page" }],
"optIn": [
{ "waitForThenClick": "#consent-page button[value=agree]" }
],
"optOut": [
{ "waitForThenClick": "#consent-page button[value=reject]" }
]
}
7 changes: 7 additions & 0 deletions tests/yahoo.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import generateCMPTests from "../playwright/runner";

generateCMPTests('Yahoo', [
'https://www.yahoo.com/'
], {
skipRegions: ['US']
});

0 comments on commit a80d38a

Please sign in to comment.