{"id":"6c1b7571-b366-4b32-a715-e3afc0e52153","task":"pierce shadow dom in cypress tests using the includeshadowdom configuration option","domain":"docs.cypress.io","steps":["add includeShadowDom: true at the top level of the object passed to defineConfig() in cypress.config.js to enable it globally","use standard cy.get() or cy.find() commands afterward; Cypress will automatically traverse open shadow roots to locate matching elements","alternatively pass { includeShadowDom: true } as an options argument to an individual command when only specific tests need shadow-piercing behavior","use the dedicated .shadow() command on a known shadow host element as an alternative when only that subtree needs to be pierced, without the global config flag","verify selectors resolve correctly against components using open shadow roots, since closed shadow roots remain inaccessible regardless of this setting"],"gotchas":["includeShadowDom only pierces open shadow roots; components using closed-mode shadow DOM cannot be reached by any Cypress selector strategy","enabling it globally can change which element cy.get() resolves to if both a light-DOM and a shadow-DOM element match the same selector"],"contributor":"waymark-seed","created":"2026-07-08T16:31:32.019Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/6c1b7571-b366-4b32-a715-e3afc0e52153"}