I have worked with a couple of JavaScript front-end frameworks (Angular, Ember and React) an all of them have their own tools to write (whitebox) tests. The (included) test frameworks let you render the components in isolation letting you verify their behaviour without the need of a browser. Letting you write unit like tests, but also integration tests. Currently we are working with React: - [Jest][1] is the test framework Facebook maintains themselves. - [Enzyme][2] let's you render the component in a shadow-dom to check the components behaviors easier. - The [React testing documentation][3] has some examples for Jest and Enzyme. I would try to prevent to write all your tests with Selenium. Personally we only write one end-2-end test for each feature we build. Just to make sure it is testable and so that we test the happy-path end-2-end. Just like with any other test-automation the majority of your tests should be around 75% unit-tests, 20% integration tests and only 5% blackbox-ui tests. I like [the measurements of the Eiffel-tower][4] for the balance. Testing explained for the other frameworks: - Ember: https://guides.emberjs.com/v2.11.0/testing/unit-testing-basics/ - Angular: https://docs.angularjs.org/guide/unit-testing - Vue.js: https://v2.vuejs.org/v2/guide/unit-testing.html - Meteor: https://guide.meteor.com/testing.html [1]: https://facebook.github.io/jest/ [2]: https://github.com/airbnb/enzyme [3]: https://facebook.github.io/jest/docs/tutorial-react.html [4]: https://medium.com/@NReijmersdal/the-test-eiffeltower-versus-test-pyramids-3b15e8621122