Cypress hold on to stale DOM reference? #15122
-
In the middle of a test Cypress suddenly unable to read node text, or click on node (saying the node is detached). Even though everything is still there. Using I'm using Cypress v6.5.0. I have written many tests before and this is my first time seeing this. Unfortunately my test is long and hard to reproduce and I'm not sure what exactly trigger it. How should I find clue about what's wrong? Is there a way to force Cypress to reconnect to the DOM? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Can you at least provide a screenshot and a few test commands around it? I would read https://www.cypress.io/blog/2020/07/22/do-not-get-too-detached/ to understand this problem |
Beta Was this translation helpful? Give feedback.
-
I forgot to close the |
Beta Was this translation helpful? Give feedback.
I forgot to close the
.within
brackets.