Commit 8db9850
Changed files (2)
features
support
spec
support
pages
features/support/env.rb
@@ -5,6 +5,7 @@
# files.
require 'cucumber/rails'
+require "capybara/poltergeist"
$flipper.enable(:gym)
# Capybara defaults to CSS3 selectors rather than XPath.
@@ -46,6 +47,7 @@ DatabaseCleaner.strategy = :transaction
# end
#
+#Capybara.default_driver = :poltergeist
# Possible values are :truncation and :transaction
# The :transaction strategy is faster, but might give you threading problems.
# See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
spec/support/pages/gyms_page.rb
@@ -8,7 +8,7 @@ class GymsPage < PageModel
def search(query)
within "#search-form" do
fill_in "q", with: query
- page.execute_script("$('form#search-form').submit()")
+ #page.execute_script("$('form#search-form').submit()")
end
end
end