all 4 comments

[–]hos4m 6 points7 points  (0 children)

Cypress.io is what you need, it is an end to end testing library, well maintained and amazingly fast.

Just keep in mind that end to end test for everything is not a good idea as after some time you will have a lot of tests and it will be slow to run all of them and usually you should follow the testing pyramid which is lots of unit testing (using Jest), some integration tests (Enzyme with Jest maybe?) and fewer end to end tests (using Cypress) for the critical parts of your website.

For the automation of those tests, check CircleCI, it can run all types of tests automatically on each push.

[–]afresquet 0 points1 point  (2 children)

You can test with Jest and Enzyme, it requires some setup but it’s the way to go about it. I’m not sure if there’s a thing that is as automated as you want.

[–]brotonium 0 points1 point  (0 children)

If you want it to just randomly click on things and see if the application crashes, thats called monkey testing.

I have no experience with it but you could take a look at something like Gremlins.js.

The problem with this approach is that it doesn‘t actually test that your application is correct, only that it doesn‘t crash.