GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

fix use of unsupported webdriver feature "network_requests"

parent 8b767269
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 @@
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
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