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
afbbacdb
Commit
afbbacdb
authored
Mar 11, 2020
by
Maxime Orefice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix capybara screenshots for rails
parent
86509ce3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
changelogs/unreleased/mo-fix-capybara-screenshots-rails.yml
changelogs/unreleased/mo-fix-capybara-screenshots-rails.yml
+5
-0
spec/support/capybara.rb
spec/support/capybara.rb
+1
-1
No files found.
changelogs/unreleased/mo-fix-capybara-screenshots-rails.yml
0 → 100644
View file @
afbbacdb
---
title
:
Fix capybara screenshots path name for rails configuration
merge_request
:
27002
author
:
type
:
fixed
spec/support/capybara.rb
View file @
afbbacdb
...
@@ -82,7 +82,7 @@ Capybara.enable_aria_label = true
...
@@ -82,7 +82,7 @@ Capybara.enable_aria_label = true
Capybara
::
Screenshot
.
append_timestamp
=
false
Capybara
::
Screenshot
.
append_timestamp
=
false
Capybara
::
Screenshot
.
register_filename_prefix_formatter
(
:rspec
)
do
|
example
|
Capybara
::
Screenshot
.
register_filename_prefix_formatter
(
:rspec
)
do
|
example
|
::
File
.
join
(
QA
::
Runtime
::
Namespace
.
name
,
example
.
full_description
.
downcase
.
parameterize
(
separator:
"_"
)[
0
..
99
])
example
.
full_description
.
downcase
.
parameterize
(
separator:
"_"
)[
0
..
99
]
end
end
# Keep only the screenshots generated from the last failing test suite
# Keep only the screenshots generated from the last failing test suite
Capybara
::
Screenshot
.
prune_strategy
=
:keep_last_run
Capybara
::
Screenshot
.
prune_strategy
=
:keep_last_run
...
...
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