Add Capybara DSL for JavaScript specs to get page helper
This commit is contained in:
parent
aac1e8181c
commit
619a792861
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue