actmd / abraham

Trackable application tours for Rails with i18n support
MIT License
124 stars 45 forks source link

Configure my application so tours don't appear in test environment by default #2

Closed jabbett closed 7 years ago

jabbett commented 7 years ago

When we run in-browser tests, a Shepherd step will sometimes get in the way of an element positioned beneath it. If we're running tests that aren't explicitly testing product tours, it would be nice if the tours didn't appear.

rroppolo commented 7 years ago

One option is to remove the tours from the abraham configuration object. In the in-browser test's config file, add:

Rails.application.configure do
  config.abraham.tours = {}
end
jabbett commented 7 years ago

@rroppolo I will add a note in the README and call it a day.