summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2019-05-28 11:02:06 +0100
committerFilipa Lacerda <filipa@gitlab.com>2019-05-30 09:58:41 +0100
commit51c35a4ab54e94239a623082d85378549739bea8 (patch)
treeb282e77e0f1d5984b95980e7e46bfb2e621ea1f8 /spec
parent4a9387242dbbfee9e9ddc7b46eb69ad6a2f4ba2c (diff)
downloadgitlab-ce-51c35a4ab54e94239a623082d85378549739bea8.tar.gz
Fixes ref being displayed as raw HTML609120-ref-link
The ref to the branch was being displayed as raw HTML in the Pipelines page
Diffstat (limited to 'spec')
-rw-r--r--spec/features/projects/pipelines/pipeline_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/features/projects/pipelines/pipeline_spec.rb b/spec/features/projects/pipelines/pipeline_spec.rb
index a1115b514d3..506aa867490 100644
--- a/spec/features/projects/pipelines/pipeline_spec.rb
+++ b/spec/features/projects/pipelines/pipeline_spec.rb
@@ -328,6 +328,12 @@ describe 'Pipeline', :js do
expect(page).not_to have_link(pipeline.ref)
expect(page).to have_content(pipeline.ref)
end
+
+ it 'does not render render raw HTML to the pipeline ref' do
+ page.within '.pipeline-info' do
+ expect(page).not_to have_content('<span class="ref-name"')
+ end
+ end
end
context 'when pipeline is detached merge request pipeline' do