Skip to content

Commit

Permalink
Add a rule for ciaopeople.it (#320)
Browse files Browse the repository at this point in the history
* Add a rule for ohga.it

refs ghostery/broken-page-reports#318

* Rename ohga.it to ciaopeople.it and add relations

- ohga.it
- lexplain.it
- wamily.it
- fanpage.it

* Add test for ciaopeople-it and remove obsoletes

* Update tests/ciaopeople-it.spec.ts

---------

Co-authored-by: Maxim Tsoy <maks.tsoy@gmail.com>
  • Loading branch information
seia-soto and muodov authored Dec 28, 2023
1 parent 349b0f4 commit bf23618
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
24 changes: 24 additions & 0 deletions rules/autoconsent/ciaopeople-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "ciaopeople.it",
"prehideSelectors": ["#cp-gdpr-choices"],
"detectCmp": [
{ "exists": "#cp-gdpr-choices" }
],
"detectPopup": [
{ "visible": "#cp-gdpr-choices" }
],
"optIn": [
{ "waitForThenClick": ".gdpr-btm__right > button:nth-child(2)" }
],
"optOut": [
{ "waitForThenClick": ".gdpr-top-content > button" },
{ "waitFor": ".gdpr-top-back" },
{ "waitForThenClick": ".gdpr-btm__right > button:nth-child(1)" }
],
"test": [
{
"visible": "#cp-gdpr-choices",
"check": "none"
}
]
}
8 changes: 8 additions & 0 deletions tests/ciaopeople-it.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import generateCMPTests from "../playwright/runner";

generateCMPTests('ciaopeople.it', [
'https://ohga.it/',
'https://lexplain.it/',
'https://wamily.it/',
'https://fanpage.it/'
]);

0 comments on commit bf23618

Please sign in to comment.