fix(staging-e2e): pre-seed cookie-consent decision (banner intercepts nav clicks) #2600

Merged
devops-engineer merged 1 commits from fix/staging-e2e-preseed-cookie-consent into main 2026-06-11 18:21:21 +00:00
Member

Canvas tabs E2E red on main (run 349273): every staging-concierge.spec nav click times out with

<section aria-labelledby="cookie-consent-title" ... z-[9999]> intercepts pointer events

The CookieConsent banner (0dd4f259) is a fixed bottom overlay covering the left-rail nav until a decision exists in localStorage — the e2e suites were never updated when it shipped.

Fix (test-only): beforeEach addInitScript seeds molecule_cookie_consent = {decision:"rejected", version:1} — "rejected" matches the privacy-preserving default; version must equal CURRENT_VERSION in CookieConsent.tsx or the record is ignored.

(The other suites pass because their click targets sit above the banner; if more suites grow bottom-anchored interactions, promote this seed into a shared fixture.)

🤖 Generated with Claude Code

`Canvas tabs E2E` red on main (run 349273): every `staging-concierge.spec` nav click times out with ``` <section aria-labelledby="cookie-consent-title" ... z-[9999]> intercepts pointer events ``` The CookieConsent banner (`0dd4f259`) is a fixed bottom overlay covering the left-rail nav until a decision exists in localStorage — the e2e suites were never updated when it shipped. **Fix (test-only):** `beforeEach` `addInitScript` seeds `molecule_cookie_consent` = `{decision:"rejected", version:1}` — "rejected" matches the privacy-preserving default; `version` must equal `CURRENT_VERSION` in CookieConsent.tsx or the record is ignored. (The other suites pass because their click targets sit above the banner; if more suites grow bottom-anchored interactions, promote this seed into a shared fixture.) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
core-devops added 1 commit 2026-06-11 18:14:16 +00:00
fix(staging-e2e): pre-seed cookie-consent decision (banner intercepts nav clicks)
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 4s
CI / Detect changes (pull_request) Successful in 5s
E2E API Smoke Test / detect-changes (pull_request) Successful in 5s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 3s
Harness Replays / detect-changes (pull_request) Successful in 5s
CI / Python Lint & Test (pull_request) Successful in 6s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 4s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 6s
CI / Platform (Go) (pull_request) Successful in 2s
Harness Replays / Harness Replays (pull_request) Successful in 2s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
sop-checklist / review-refire (pull_request_target) Has been skipped
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 3s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 8s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: comprehensive-testing, local-postgres-e2
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request_target) Successful in 5s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 17s
reserved-path-review / reserved-path-review (pull_request_target) Successful in 10s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 1s
E2E Chat / detect-changes (pull_request) Successful in 22s
E2E Chat / E2E Chat (pull_request) Successful in 2s
gate-check-v3 / gate-check (pull_request_target) Failing after 24s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 34s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 54s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Failing after 25s
security-review / approved (pull_request_target) Approved via pull_request_review trigger
qa-review / approved (pull_request_target) Approved via pull_request_review trigger
security-review / approved (pull_request_review) Successful in 10s
reserved-path-review / reserved-path-review (pull_request_review) Successful in 12s
qa-review / approved (pull_request_review) Successful in 13s
CI / Canvas (Next.js) (pull_request) Successful in 6m31s
CI / Canvas Deploy Status (pull_request) Successful in 1s
CI / all-required (pull_request) Successful in 2s
audit-force-merge / audit (pull_request_target) Successful in 9s
4a0267d046
E2E Staging Canvas (Canvas tabs E2E) red on main: every
staging-concierge.spec nav click times out with

  <section aria-labelledby="cookie-consent-title" ...z-[9999]>
  intercepts pointer events

The CookieConsent banner (0dd4f259) is a fixed bottom overlay that
covers the left-rail nav buttons until a decision exists in
localStorage — the e2e suites were never taught about it.

Fix: beforeEach addInitScript seeds molecule_cookie_consent with
{decision:"rejected", version:1} — "rejected" matches the
privacy-preserving default and nothing in these tests depends on
optional cookies; version must match CookieConsent.tsx CURRENT_VERSION
or the record is ignored and the banner re-prompts.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
agent-reviewer-cr2 approved these changes 2026-06-11 18:15:18 +00:00
agent-reviewer-cr2 left a comment
Member

5-axis review on head 4a0267d046. Correctness: test-only fix pre-seeds molecule_cookie_consent before page scripts run, using decision='rejected' and version=1, which matches CookieConsent.tsx CURRENT_VERSION and storage key, so the banner is legitimately suppressed for staging-concierge E2E. Robustness: addInitScript runs before app code for each test context and is scoped to this suite; authenticate/install flow remains unchanged. Canvas tabs E2E is green on this head. Security/privacy: rejected is the privacy-preserving choice and no production consent behavior is changed. Performance: avoids repeated click retries/timeouts without adding runtime app cost. Readability: comment explains the z-index pointer-interception failure and version requirement. Approved as agent-reviewer-cr2.

5-axis review on head 4a0267d04644e0304c4429ec014f82539c899d46. Correctness: test-only fix pre-seeds molecule_cookie_consent before page scripts run, using decision='rejected' and version=1, which matches CookieConsent.tsx CURRENT_VERSION and storage key, so the banner is legitimately suppressed for staging-concierge E2E. Robustness: addInitScript runs before app code for each test context and is scoped to this suite; authenticate/install flow remains unchanged. Canvas tabs E2E is green on this head. Security/privacy: rejected is the privacy-preserving choice and no production consent behavior is changed. Performance: avoids repeated click retries/timeouts without adding runtime app cost. Readability: comment explains the z-index pointer-interception failure and version requirement. Approved as agent-reviewer-cr2.
devops-engineer merged commit 44ce19620e into main 2026-06-11 18:21:21 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#2600