Add trybe cookie consent rule for try.be sites#1203
Conversation
Add a new site-specific rule to handle the custom React-based cookie consent popup used on try.be sites (e.g. thestoreoxford.try.be). The opt-out flow opens the cookie settings modal and clicks 'Save and close' with all optional cookies disabled by default. Also adds a Playwright test for the rule. Co-authored-by: Sam Macbeth <sammacbeth@users.noreply.github.com>
The React app removes the #cookie-policy element asynchronously after clicking 'Save and close'. Add a small wait before checking that the element no longer exists. Co-authored-by: Sam Macbeth <sammacbeth@users.noreply.github.com>
|
CI run finished. Artifacts ZIP for the review tool |
The cookie settings modal defaults all toggles to ON (enabled). The previous rule opened the settings and clicked 'Save and close' without toggling them off, resulting in trybe_cookies_consent_tracking=true. Now the opt-out flow: 1. Opens 'Cookie settings' modal 2. Waits for the HeadlessUI toggle switches to appear 3. Clicks the Tracking toggle to disable it (aria-checked → false) 4. Clicks the Advertising toggle to disable it (aria-checked → false) 5. Clicks 'Save and close' Updated self-test to verify trybe_cookies_consent_tracking=false. Co-authored-by: Sam Macbeth <sammacbeth@users.noreply.github.com>
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
|
CI run finished. Artifacts ZIP for the review tool |
Task/Issue URL: https://app.asana.com/1/137249556945/project/1203268166580279/task/1213654121777040?focus=true
Description:
Adds a new autoconsent rule (
trybe) to handle the custom React-based cookie consent popup used on try.be sites (e.g. thestoreoxford.try.be).Problem: The cookie consent popup on https://thestoreoxford.try.be was not being handled by any existing autoconsent rule. The site uses a custom React-based cookie consent implementation (
react-cookie-policy) rather than a standard CMP platform.Solution: Created a new site-specific rule that:
.react-cookie-policycontainer element#cookie-policybanner visibility#cookie-policyelement has been removed from the DOMFiles changed:
rules/autoconsent/trybe.json— New rule definitiontests/trybe.spec.ts— Playwright test for the new ruleSteps to test this PR:
npm run prepublishdist/addon-mv3/npx playwright test tests/trybe.spec.ts --project webkit