News for hackers. Stuff that matters.
Re:Playwright for .NET is now stable by worldsayshi on Thursday June 10, 2021 @07:11AM (#27459326)
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.

Re:Playwright for .NET is now stable by arjun27 on Thursday June 10, 2021 @08:04AM (#27459662)
Were you able to use the DOM snapshots to debug why the selectors did not resolve? Would love to know more.
Re:Playwright for .NET is now stable by worldsayshi on Thursday June 10, 2021 @10:26AM (#27461156)
> 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.

Re:Playwright for .NET is now stable by wdb on Thursday June 10, 2021 @07:51AM (#27459570)
Got less once I started using dom-testing-library :)