Skip to content

Commit

Permalink
Add rule for ring.com
Browse files Browse the repository at this point in the history
  • Loading branch information
muodov committed Feb 25, 2025
1 parent b052d20 commit 3bafa66
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
36 changes: 36 additions & 0 deletions rules/autoconsent/ring.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "ring",
"vendorUrl": "https://ring.com",
"prehideSelectors": [],
"detectCmp": [
{
"exists": ".consent-banner .consent-banner-copy"
}
],
"detectPopup": [
{
"visible": ".consent-banner .consent-banner-copy"
}
],
"optIn": [
{
"waitForThenClick": ".consent-banner .consent--accept"
}
],
"optOut": [
{
"waitForThenClick": ".consent-banner .consent--manage"
},
{
"waitForVisible": ".consent-modal .consent-bucket"
},
{
"click": ".consent-modal input[type=checkbox]:checked",
"all": true,
"optional": true
},
{
"waitForThenClick": ".consent-modal .consent-save"
}
]
}
3 changes: 3 additions & 0 deletions tests/ring.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import generateCMPTests from '../playwright/runner';

generateCMPTests('ring', ['https://nl-nl.ring.com/', 'https://community.ring.com/', 'https://ring.com/']);

0 comments on commit 3bafa66

Please sign in to comment.