#Cypress vs jest playwright for component testing

6 messages · Page 1 of 1 (latest)

stable sun
#

I was asking myself, since there is composeStories on the one hand that seems to work for cypress too. Are the interactions in the tools the only benefit of the testing addon?
Can storybook harmonize with Cypress and also, is that approach for suitable for doing TDD ?

chrome lotus
#

Hey there, composeStories was a step towards component testing. Our opinion is that component testing offers a better alternative to Cypress. You're able to use stories for dev, testing and documentation.

Plus, for CI runs, you can debug tests in the browser. Whereas, with Cypress you only get screen recordings.

That said, do what fits better in your workflow.

stable sun
#

playwrights component testing is experimental, and also, getting jest into the boat again instead of vitest or something faster seem bad

chrome lotus
#

It uses Jest assertions and playwright as the CI test runner. Alternatively, you can use Chromatic as the CI test runner.

stable sun
#

currently trying to get away from jest