railsware / rack_session_access

Rack middleware that provides access to rack.session environment
MIT License
257 stars 29 forks source link

Capybara::ElementNotFound: Unable to find field "data" that is not disabled #33

Closed chase439 closed 5 years ago

chase439 commented 5 years ago

I'm getting this error when I upgraded from rails 5.2 to 6.0.0. It was working fine in Rails 5.2.

I think it points to these lines:

After some troubleshooting, this happens when there's a line like below in Rails app's config/application.rb:

This line is recommended by Rails.

ayanko commented 5 years ago

What is your capybara version?

chase439 commented 5 years ago

latest capybara version 3.29.0

After more troubleshooting, I found the solution.

Put in config/environments/test.rb: config.hosts = []

ayanko commented 5 years ago

Yeap https://www.fngtps.com/2019/rails6-blocked-host/