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
6c44ffc8
Commit
6c44ffc8
authored
Apr 01, 2020
by
Mark Lapierre
Committed by
Dan Davison
Apr 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set screenshot in after instead of around hook
This will hopefully avoid nested examples
parent
616db62b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
qa/qa/runtime/browser.rb
qa/qa/runtime/browser.rb
+1
-3
No files found.
qa/qa/runtime/browser.rb
View file @
6c44ffc8
...
@@ -51,9 +51,7 @@ module QA
...
@@ -51,9 +51,7 @@ module QA
metadata
[
:type
]
=
:feature
metadata
[
:type
]
=
:feature
end
end
config
.
around
(
:each
)
do
|
example
|
config
.
append_after
(
:each
)
do
|
example
|
example
.
run
if
example
.
metadata
[
:screenshot
]
if
example
.
metadata
[
:screenshot
]
screenshot
=
example
.
metadata
[
:screenshot
][
:image
]
||
example
.
metadata
[
:screenshot
][
:html
]
screenshot
=
example
.
metadata
[
:screenshot
][
:image
]
||
example
.
metadata
[
:screenshot
][
:html
]
example
.
metadata
[
:stdout
]
=
%{[[ATTACHMENT|#{screenshot}]]}
example
.
metadata
[
:stdout
]
=
%{[[ATTACHMENT|#{screenshot}]]}
...
...
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