Description
Current behavior
I'm using Cypress with Typescript and while I can pass options to cy.get()
with includeShadowDom: true
, I cannot do so with cy.contains()
. It appears the typings differ, where cy.get()
allows a Partial<Cypress.Shadow>
and cy.contains()
does not. I have tried this using both Cypress v 6.8.0 and v 7.3.0.
Screenshot 1 (Works with cy.get()
):
Screenshot 2 (Doesn't work with cy.contains()
):
Desired behavior
I should be able to pass the includeShadowDom argument to cy.contains()
. My current workaround is to enable includeShadowDom in the cypress.json
but of course that enables it globally.
Test code to reproduce
Example repo: https://github.com/ashblox/cypress-issue
This is the file with the issue.
Versions
Confirmed this does not work with 7.5.0 either.
Metadata
Metadata
Assignees
Labels
No labels