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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
ad668d0d
Commit
ad668d0d
authored
Jun 16, 2020
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add warning for broken ChromeDriver installation
parent
ad24d47e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
spec/support/capybara.rb
spec/support/capybara.rb
+14
-5
No files found.
spec/support/capybara.rb
View file @
ad668d0d
...
...
@@ -153,11 +153,20 @@ RSpec.configure do |config|
# fixed. If we raised the `JSException` the fixed test would be marked as
# failed again.
if
example
.
exception
&&
!
example
.
exception
.
is_a?
(
RSpec
::
Core
::
Pending
::
PendingExampleFixedError
)
console
=
page
.
driver
.
browser
.
manage
.
logs
.
get
(
:browser
)
&
.
reject
{
|
log
|
log
.
message
=~
JS_CONSOLE_FILTER
}
if
console
.
present?
message
=
"Unexpected browser console output:
\n
"
+
console
.
map
(
&
:message
).
join
(
"
\n
"
)
raise
JSConsoleError
,
message
begin
console
=
page
.
driver
.
browser
.
manage
.
logs
.
get
(
:browser
)
&
.
reject
{
|
log
|
log
.
message
=~
JS_CONSOLE_FILTER
}
if
console
.
present?
message
=
"Unexpected browser console output:
\n
"
+
console
.
map
(
&
:message
).
join
(
"
\n
"
)
raise
JSConsoleError
,
message
end
rescue
Selenium
::
WebDriver
::
Error
::
WebDriverError
=>
error
if
error
.
message
=~
/unknown command: session\/[0-9a-zA-Z]+(?:\/se)?\/log/
message
=
"Unable to access Chrome javascript console logs. You may be using an outdated version of ChromeDriver."
raise
JSConsoleError
,
message
else
raise
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