Skip to content

Commit 50ebb02

Browse files
daxtheduckclaude
andauthored
Add jobtoday rule (#2427)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent c222697 commit 50ebb02

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

‎rules/autoconsent/jobtoday.json‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "jobtoday",
3+
"vendorUrl": "https://jobtoday.com/",
4+
"runContext": {
5+
"urlPattern": "^https?://(www\\.)?jobtoday\\.com/"
6+
},
7+
"prehideSelectors": [],
8+
"detectCmp": [{ "exists": "[data-testid=modal_cookie-consent]" }],
9+
"detectPopup": [{ "visible": "[data-testid=modal_cookie-consent]" }],
10+
"optIn": [{ "waitForThenClick": "[data-testid=modal_cookie-consent-accept-all]" }],
11+
"optOut": [
12+
{ "waitForThenClick": "[data-testid=modal_cookie-consent] .modal-bottom button.jt-btn-outline" },
13+
{ "waitForVisible": "[data-testid=modal_cookie-consent] #marketingConsent" },
14+
{ "click": "[data-testid=modal_cookie-consent] input[type=checkbox]:checked:not([disabled])", "all": true, "optional": true },
15+
{ "waitForThenClick": "[data-testid=modal_cookie-consent-accept]" }
16+
],
17+
"test": [{ "cookieContains": "jt-cookie-consent-extended=%7B%22ad_storage%22%3Afalse%2C%22analytics_storage%22%3Afalse" }]
18+
}

‎tests/jobtoday.spec.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import generateCMPTests from '../playwright/runner';
2+
3+
generateCMPTests('jobtoday', ['https://jobtoday.com/'], {
4+
skipRegions: ['US', 'NL'],
5+
});

0 commit comments

Comments
 (0)