Commit 619a7928 authored by Stan Hu's avatar Stan Hu

Add Capybara DSL for JavaScript specs to get page helper

parent aac1e818
...@@ -32,6 +32,7 @@ end ...@@ -32,6 +32,7 @@ end
Spinach.hooks.after_scenario do |scenario_data, step_definitions| Spinach.hooks.after_scenario do |scenario_data, step_definitions|
if scenario_data.tags.include?('javascript') if scenario_data.tags.include?('javascript')
include Capybara::DSL
include WaitForRequests include WaitForRequests
block_and_wait_for_requests_complete block_and_wait_for_requests_complete
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment