Company
Date Published
Author
Guest Note
Word count
2444
Language
English
Hacker News points
None

Summary

In the blog post, Chris Miaskowski, CEO at 11Sigma, shares insights and lessons learned from transitioning to Cypress for end-to-end (E2E) testing in their work with Stoplight, a startup specializing in API products. The switch from Codecept, motivated by Stoplight's significant product redesign, promised more reliable and faster test executions, improved onboarding, and versatile debugging. Key lessons included understanding Cypress's asynchronous nature, avoiding excessive chaining of commands, and the importance of using 'should' over 'then' for assertions to reduce test flakiness. Miaskowski highlights the benefits of Cypress, such as its reduced flake-prone tests compared to selenium and the ease of writing tests, despite some challenges like managing environment variables and using puppeteer for OAuth login flows. The company is also exploring Cypress's paid Dashboard and analytics to track stability, coverage, and performance over time. The overall experience with Cypress has been positive, and the team is looking forward to deeper integration and experimentation with the framework's capabilities.