Setting Up Rails System Tests
Learn to configure Capybara and our system specs in this lesson.
We'll cover the following...
Rails system tests
Rails system tests, added in Rails 5.14, allow you to perform high-level, end-to-end tests of your application. Rather than testing if individual functions or methods perform as they should (unit testing), they test the application based on how the user interacts with it, that is, via a web interface. They allow us to assert that when a user interacts with our application in a certain way (such as filling in forms, clicking links or buttons), the app responds as we would expect (such as displaying the correct page or having the correct things appear on the page). ...