jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

Specifying more config options to Capybara::Webkit #540

Open mathias opened 6 years ago

mathias commented 6 years ago

Hello,

I need to specify several options to Capybara::Webkit. In an rspec config file for acceptance tests, this would look like

  Capybara::Webkit.configure do |config|
    config.allow_url("example.com")
    config.allow_url("blog.example.com")
  end

etc

I am trying to pass config options to Capybara::Webkit in the appropriate spot in teaspoon_env.rb but it does not appear that this hash is the same as config above.

Is there some way to do the above in the scope of the Capybara::Webkit that teaspoon uses?

The docs for Capybara Webkit on teaspoon don't mention this type of config.

Thanks!

mathieujobin commented 3 years ago

sounds good, PR welcome ;)