Rails 5.1 added support for system tests, which is now the easiest method to test our apps. A system test performs its scenario in a real browser just like a user would. Let's write some to understand how the work. The Application To test we need some functionality. I created a small rails app that allows users to post messages anonymously, showing all messages to all users. The entire code for the project along with the test is available here: https://github.com/ynonp/rails-system-test-tutorial