Setting this up took quite a bit of time and research for me, so just thought of sharing the learnings along the way that led to a working setup.
-
Initial error that I was getting with running System tests in Rails 6
System test integration requires Rails >= 5.1 and has a hard dependency on a webserver and `capybara`, please add capybara to your Gemfile and configure a webserver (e.g. `Capybara.server = :webrick`) before attempting to use system tests.
- since the error above says specify
Capybara
in the Gemfile, a part of my Gemfile looked like below:
- since the error above says specify