Skip to content

Commit

Permalink
Fix Capybara compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dlackty committed Jun 27, 2016
1 parent 03a8637 commit 323fc2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
# steps to use the XPath syntax.
Capybara.default_selector = :css

# Make input type=hidden visible
Capybara.ignore_hidden_elements = false

# If you set this to false, any error raised from within your app will bubble
# up to your step definition and out to cucumber unless you catch it somewhere
# on the way. You can make Rails rescue errors and render error pages on a
Expand Down
3 changes: 3 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,6 @@ def with_translation(translation)
config.after(:all) { DeferredGarbageCollection.reconsider }
end
end

# Make input type=hidden visible
Capybara.ignore_hidden_elements = false

0 comments on commit 323fc2b

Please sign in to comment.