https://cypress.io logo
Kind of an out-there question - how can I get the ...
# e2e-testing
a
Kind of an out-there question - how can I get the underlying nodes of a
<slot>
in a web components? I've got
cy.get('@content').find('slot').then(slot => ...)
, but don't know what to do next. I can grab it in the console and called
.assignedNodes()
and see what I would like to test against, but calling that function from Cypress I get an error —
slot.assignedNodes is not a function
.