TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Playwright caught up with Cypress in the number of GitHub stars

2 pointsby qa-guyabout 3 years ago

1 comment

dschuesslerabout 3 years ago
We wrote E2E tests with Cypress before Playwright was around and it was awful. The API is weird to the extent that it is basically a DSL based on Javascript. And the tests were flaky because rerenderings could happen between Cypress getting the DOM element and interacting with it. It seems they haven&#x27;t fixed that one to this day.[0]<p>The team is also very confident about their approach. They build their own asynchronous concepts that are not interoperable with async&#x2F;await, openly acknowledge that it is hard to wrap your head around and then dismiss these concerns by asserting that &quot;Asynchronous APIs are here to stay in JavaScript.&quot;.[1] The Github issue about the lost DOM elements is also full of answers by a team member intent on writing blog posts that explain what the user is doing wrong rather than fixing the root problem.<p>I&#x27;m really glad that Playwright came around. It is intuitive, pragmatic and has none of the problems above.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;cypress-io&#x2F;cypress&#x2F;issues&#x2F;7306" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cypress-io&#x2F;cypress&#x2F;issues&#x2F;7306</a><p>[1]: <a href="https:&#x2F;&#x2F;docs.cypress.io&#x2F;guides&#x2F;core-concepts&#x2F;variables-and-aliases#Return-Values" rel="nofollow">https:&#x2F;&#x2F;docs.cypress.io&#x2F;guides&#x2F;core-concepts&#x2F;variables-and-a...</a>