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
8640b294
Commit
8640b294
authored
7 years ago
by
Eric Eastwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add extra assertions about how the link will open
parent
ff4b8cdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
spec/features/projects/artifacts/browse_spec.rb
spec/features/projects/artifacts/browse_spec.rb
+4
-1
No files found.
spec/features/projects/artifacts/browse_spec.rb
View file @
8640b294
...
@@ -35,7 +35,10 @@ feature 'Browse artifact', :js do
...
@@ -35,7 +35,10 @@ feature 'Browse artifact', :js do
it
"shows external link icon and styles"
do
it
"shows external link icon and styles"
do
link
=
first
(
'.tree-item-file-external-link'
)
link
=
first
(
'.tree-item-file-external-link'
)
expect
(
link
).
to
have_content
(
'doc_sample.txt'
)
expect
(
page
).
to
have_link
(
'doc_sample.txt'
,
href:
file_project_job_artifacts_path
(
project
,
job
,
path:
txt_entry
.
blob
.
path
))
expect
(
link
[
:target
]).
to
eq
(
'_blank'
)
expect
(
link
[
:rel
]).
to
include
(
'noopener'
)
expect
(
link
[
:rel
]).
to
include
(
'noreferrer'
)
expect
(
page
).
to
have_selector
(
'.js-artifact-tree-external-icon'
)
expect
(
page
).
to
have_selector
(
'.js-artifact-tree-external-icon'
)
end
end
end
end
...
...
This diff is collapsed.
Click to expand it.
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