Skip to content

Commit

Permalink
Add a rule for ebay (#449)
Browse files Browse the repository at this point in the history
* Add a rule for ebay

* Add test URLs for ebay
  • Loading branch information
muodov authored May 31, 2024
1 parent 16385a9 commit 56efd55
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
31 changes: 31 additions & 0 deletions rules/autoconsent/ebay.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "ebay",
"vendorUrl": "https://ebay.com",
"cosmetic": false,
"runContext": {
"main": true,
"frame": false,
"urlPattern": "^https://(www\\.)?ebay\\.([.a-z]+)/"
},
"prehideSelectors": ["#gdpr-banner"],
"detectCmp": [
{
"exists": "#gdpr-banner"
}
],
"detectPopup": [
{
"visible": "#gdpr-banner"
}
],
"optIn": [
{
"waitForThenClick": "#gdpr-banner-accept"
}
],
"optOut": [
{
"waitForThenClick": "#gdpr-banner-decline"
}
]
}
7 changes: 7 additions & 0 deletions tests/ebay.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import generateCMPTests from "../playwright/runner";

generateCMPTests('ebay', [
'https://www.ebay.co.uk/',
'https://www.ebay.com/',
'https://www.ebay.nl/',
]);

0 comments on commit 56efd55

Please sign in to comment.