DEV Community

Discussion on: How To Test JavaScript Code In A Browser

 
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