Skip to content

Add trybe cookie consent rule for try.be sites#1203

Draft
sammacbeth wants to merge 4 commits intomainfrom
cursor/thestoreoxford-cookie-popup-ee70
Draft

Add trybe cookie consent rule for try.be sites#1203
sammacbeth wants to merge 4 commits intomainfrom
cursor/thestoreoxford-cookie-popup-ee70

Conversation

@sammacbeth
Copy link
Copy Markdown
Collaborator

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:

  • Detects the CMP via the .react-cookie-policy container element
  • Detects the popup via the #cookie-policy banner visibility
  • Opt-out flow: Opens "Cookie settings" modal → clicks "Save and close" (all optional cookies are disabled by default)
  • Opt-in flow: Clicks "Accept all" button
  • Self-test: Waits briefly then verifies the #cookie-policy element has been removed from the DOM

Files changed:

  • rules/autoconsent/trybe.json — New rule definition
  • tests/trybe.spec.ts — Playwright test for the new rule

Steps to test this PR:

  1. Build the extension: npm run prepublish
  2. Load the extension in Chrome from dist/addon-mv3/
  3. Navigate to https://thestoreoxford.try.be/items/656878575d58543ca408d12f/thermal-suite
  4. Verify the cookie popup is automatically handled (dismissed)
  5. Run Playwright tests: npx playwright test tests/trybe.spec.ts --project webkit
Open in Web Open in Cursor 

cursoragent and others added 2 commits March 17, 2026 10:00
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>
@daxtheduck
Copy link
Copy Markdown
Collaborator

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>
@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants