diff options
| author | mo khan <mo@mokhan.ca> | 2016-05-02 22:50:02 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2016-05-02 22:50:02 -0600 |
| commit | 8db9850060ec13b6db74eb66b3a5af7dcefd491b (patch) | |
| tree | a5c84b9c9264097354fb6c96a0ebe1307451077c | |
| parent | 74346a08d1f5f907a5a9cb5edf4c48d87c9152d0 (diff) | |
attempt to submit form without js.
| -rw-r--r-- | features/support/env.rb | 2 | ||||
| -rw-r--r-- | spec/support/pages/gyms_page.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/features/support/env.rb b/features/support/env.rb index 505c149..aa2397e 100644 --- a/features/support/env.rb +++ b/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 diff --git a/spec/support/pages/gyms_page.rb b/spec/support/pages/gyms_page.rb index fcb6d17..871f657 100644 --- a/spec/support/pages/gyms_page.rb +++ b/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 |
