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
Boxiang Sun
gitlab-ce
Commits
eb4e629f
Commit
eb4e629f
authored
Jul 09, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[QA] Ensure screenshots are save in subfolder per QA run
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
c7c630f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
qa/qa/runtime/browser.rb
qa/qa/runtime/browser.rb
+4
-0
qa/qa/runtime/namespace.rb
qa/qa/runtime/namespace.rb
+1
-1
No files found.
qa/qa/runtime/browser.rb
View file @
eb4e629f
...
...
@@ -85,6 +85,10 @@ module QA
driver
.
browser
.
save_screenshot
(
path
)
end
Capybara
::
Screenshot
.
register_filename_prefix_formatter
(
:rspec
)
do
|
example
|
File
.
join
(
QA
::
Runtime
::
Namespace
.
name
,
example
.
file_path
.
sub
(
'./qa/specs/features/'
,
''
))
end
Capybara
.
configure
do
|
config
|
config
.
default_driver
=
:chrome
config
.
javascript_driver
=
:chrome
...
...
qa/qa/runtime/namespace.rb
View file @
eb4e629f
...
...
@@ -8,7 +8,7 @@ module QA
end
def
name
'qa-test-'
+
time
.
strftime
(
'%d-%m-%Y-%H-%M-%S'
)
"qa-test-
#{
time
.
strftime
(
'%Y-%m-%d-%Y-%H-%M-%S'
)
}
"
end
def
path
...
...
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