Commit 8b573b1d authored by Mike Greiling's avatar Mike Greiling

fix use of unsupported webdriver feature "network_requests"

parent 8b767269
require 'spec_helper' require 'spec_helper'
feature 'RavenJS', :js do feature 'RavenJS' do
let(:raven_path) { '/raven.bundle.js' } let(:raven_path) { '/raven.bundle.js' }
it 'should not load raven if sentry is disabled' do it 'should not load raven if sentry is disabled' do
...@@ -18,6 +18,8 @@ feature 'RavenJS', :js do ...@@ -18,6 +18,8 @@ feature 'RavenJS', :js do
end end
def has_requested_raven def has_requested_raven
page.driver.network_traffic.one? {|request| request.url.end_with?(raven_path)} page.all('script', visible: false).one? do | elm |
elm[:src] =~ /#{raven_path}$/
end
end end
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