Skip to content

Add better documentation for system tests #1902

@aried3r

Description

@aried3r

Hey! I was really happy to see RSpec 3.7 was released with support for ActionDispatch::SystemTest. Great work!

However I'm not sure what the recommended way of using them is. The README has no mention of them but in one of the commits there's a small note about usage.

One of the first questions I had were:
– Can I do something similar to having application_system_test_case.rb? The note in the commit only says it's not used and that you have to call it manually in a test case. What if I want a global config for type: :system specs?
– Are the other helpers like the screenshot helper included (it appears so? As in, is RSpec really just a thin wrapper around the system tests and besides not being able to use application_system_test_case.rb everything works as expected and I just need to follow the Rails docs?
– Speaking of thin wrappers, when Rails 5.2 is released, will using :chrome_headless just work as a driver or will there have to be a change and new release of rspec-rails as well?

Since a lot of work went into system tests, I just want to make sure I don't miss out on it when using RSpec as a wrapper around them. :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions