Before upgrading to 5.1 rails, I test my rails application with integration tests. And 70% of my rails application is automated with integration tests. Means that all applied simple and complex behavior is automated with the help of integration tests. Off-track rails did not conduct java-script based testing.
With Rails 5.1, they include system tests and say that every application interacts with a java script, and now you can test end-to-end scripts, for example, a real user interacting with a browser. So, my manager will ask me to move all integration tests to system tests . Good! we can test our application in the way our users do, and also help us test JavaScript.
A specific system test can cover almost all integration tests. So what is the importance of testing integration now?
Why would someone write an integration test in Rails 5.1 when they can write the same test case in a System Test?
Thanks in advance.
source share