diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-10-26 21:10:11 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-10-26 21:35:48 +0300 |
commit | 8b573b1dfc2d60fc960b1ea2f5d0e854bfabf549 (patch) | |
tree | bcb041f6148cb29aedeb2fadee32a32fd3b0c1ec /spec/features/raven_js_spec.rb | |
parent | 8b7672697fd5c33a7d0a589bd1427f32f8692872 (diff) |
fix use of unsupported webdriver feature "network_requests"
Diffstat (limited to 'spec/features/raven_js_spec.rb')
-rw-r--r-- | spec/features/raven_js_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/features/raven_js_spec.rb b/spec/features/raven_js_spec.rb index b1f51959d54..e4738932314 100644 --- a/spec/features/raven_js_spec.rb +++ b/spec/features/raven_js_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -feature 'RavenJS', :js do +feature 'RavenJS' do let(:raven_path) { '/raven.bundle.js' } it 'should not load raven if sentry is disabled' do @@ -18,6 +18,8 @@ feature 'RavenJS', :js do end 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 |