Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

RSpec Generator

What you get

RSpec Default

Based of rspec-rails install generator. Assume all configuration will be placed in spec/support/*.rb

System Tests

Released with rails 5.1, these tests cover end to end functionality.

Helpers

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

Capybara Drivers

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.

headless

it 'saves the form data', :js do
  # ...some test
end

Chrome - visible browser

it 'saves the form data', :chrome do
  # ...some test
end

Firefox

it 'saves the form data', :firefox do
  # ...some test
end