Add Capybara DSL for JavaScript specs to get page helper

This commit is contained in:
Stan Hu 2017-06-15 17:30:46 -07:00
parent aac1e8181c
commit 619a792861

View file

@ -32,6 +32,7 @@ end
Spinach.hooks.after_scenario do |scenario_data, step_definitions|
if scenario_data.tags.include?('javascript')
include Capybara::DSL
include WaitForRequests
block_and_wait_for_requests_complete
end