DEV Community

Discussion on: To Puppeteer, or to Cypress

Collapse
 
vitmalina profile image
Vitali Malinouski

It felt like you were a bit biased towards puppeteer, I would guess because of server JavaScript background vs browser JavaScript. I come from browser JS and Cypress feels natural to me. Chaining is popular since jQuery days and in both server/client side JS it is now popularized with Promises. But it is much easier for me to read code that uses chaining then lots of awaits :)

But I would agree with you on a few points you mentioned

  • Assertions in Cypress could be much improved, I still have to look up documentation and cannot memorize them
  • Ability to pause at a command and then step through would be amazing. I tried .debug() and it stops in the middle of Cypress code :(. Also, adding .then(()=>{ debugger; }) has limited usefulness.