DEV Community

Discussion on: How To Test JavaScript Code In A Browser

Collapse
 
lexlohr profile image
Alex Lohr

Cypress currently only supports Chromium and electron. Testcafe will support almost every browser.

Collapse
 
steelwolf180 profile image
Max Ong Zong Bao

Interesting I had never heard of TestCafe till you had just suggested to me. I'll look it up to see if it's a useful alternative to Selenium or Cypress.

Thread Thread
 
lexlohr profile image
Alex Lohr

Selenium is more a heavy-weight solution for end to end testing, whereas testcafe is meant for in-browser integration testing.

Our testing pyramid currently looks like this:

  • selenium for e2e tests (+ a few manual tests not yet automated)
  • testcafe for integration tests
  • jest for unit tests