Closed
Description
cypress-testing-library
version: ^6.0.0node
version: v10.21.0npm
(oryarn
) version: 1.22.4 (yarn)
Relevant code or config
cy.visit('/email-verified')
.findByText(/okay/i)
What you did:
I visit a page and call findByText
What happened:
I get the following error message:
Timed out retrying: Expected container to be an Element, a Document or a DocumentFragment but got Window.
If I call get('body')
before calling findByText
it works:
cy.visit('/email-verified')
.get('body')
.findByText(/okay/i)
Metadata
Metadata
Assignees
Labels
No labels