Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
8b573b1d
Commit
8b573b1d
authored
Oct 26, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix use of unsupported webdriver feature "network_requests"
parent
8b767269
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spec/features/raven_js_spec.rb
spec/features/raven_js_spec.rb
+4
-2
No files found.
spec/features/raven_js_spec.rb
View file @
8b573b1d
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment