4 ms·
I've had some issues with Cypress selectors randomly failing to find matching elements, even though they are clearly present. Like if I run the same script 10 t
by worldsayshi 5y ago
I've had some issues with Cypress selectors randomly failing to find matching elements, even though they are clearly present. Like if I run the same script 10 times it goes through ~7 times. I wanted to try Playwright for another application to avoid such issues.
And then I was very surprised to get almost the exact same issues with Playwright. Running against a different application with different test cases.
Has anyone else had issues like this with React applications? It's very annoying to not be able to write repeatable tests.
- wdb 5y agoGot less once I started using dom-testing-library :)
- arjun27 5y agoWere you able to use the DOM snapshots to debug why the selectors did not resolve? Would love to know more.
- worldsayshi 5y ago> DOM snapshots I should definitely try that the next time I'm working on this issue. Maybe I can get some kind of small example as well if possible. But replicating the problematic conditions is probably hard.