fix(staging-e2e): pre-seed cookie-consent decision (banner intercepts nav clicks) #2600
Reference in New Issue
Block a user
Delete Branch "fix/staging-e2e-preseed-cookie-consent"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Canvas tabs E2Ered on main (run 349273): everystaging-concierge.specnav click times out withThe 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):
beforeEachaddInitScriptseedsmolecule_cookie_consent={decision:"rejected", version:1}— "rejected" matches the privacy-preserving default;versionmust equalCURRENT_VERSIONin 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
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.