Based of rspec-rails install generator. Assume all configuration will be placed in spec/support/*.rb
Released with rails 5.1, these tests cover end to end functionality.
In addition to setting this up, we've added a way to include domain specific test helpers for your tests in the spec/support/helpers. These files can be included in support/helpers.rb
We have chosen to use the Playwright Ruby Client for running system tests. This is pulled in through the Capybara Playwright Driver gem.
Below are examples for using real browsers to drive your tests.
it 'saves the form data', :js do
# ...some test
endit 'saves the form data', :chrome do
# ...some test
endit 'saves the form data', :firefox do
# ...some test
end