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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
652c15b5
Commit
652c15b5
authored
Apr 25, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use capybara-screenshot in CI environments
parent
38759307
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
features/support/capybara.rb
features/support/capybara.rb
+5
-3
spec/support/capybara.rb
spec/support/capybara.rb
+5
-3
No files found.
features/support/capybara.rb
View file @
652c15b5
...
...
@@ -16,7 +16,9 @@ end
Capybara
.
default_wait_time
=
timeout
Capybara
.
ignore_hidden_elements
=
false
require
'capybara-screenshot/spinach'
unless
ENV
[
'CI'
]
||
ENV
[
'CI_SERVER'
]
require
'capybara-screenshot/spinach'
# Keep only the screenshots generated from the last failing test suite
Capybara
::
Screenshot
.
prune_strategy
=
:keep_last_run
# Keep only the screenshots generated from the last failing test suite
Capybara
::
Screenshot
.
prune_strategy
=
:keep_last_run
end
spec/support/capybara.rb
View file @
652c15b5
...
...
@@ -13,7 +13,9 @@ end
Capybara
.
default_wait_time
=
timeout
Capybara
.
ignore_hidden_elements
=
true
require
'capybara-screenshot/rspec'
unless
ENV
[
'CI'
]
||
ENV
[
'CI_SERVER'
]
require
'capybara-screenshot/rspec'
# Keep only the screenshots generated from the last failing test suite
Capybara
::
Screenshot
.
prune_strategy
=
:keep_last_run
# Keep only the screenshots generated from the last failing test suite
Capybara
::
Screenshot
.
prune_strategy
=
:keep_last_run
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