Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2018-07-27 00:30:50 +0300
committerFelipe Artur <felipefac@gmail.com>2018-07-27 00:30:50 +0300
commit13ea4b387ddcee5f5e8a59ac90dc9e485f4242f5 (patch)
treeea588d7aecbaa8868f23addf50748a14d167e342 /spec/features
parentcaeb4597a5b24e0eaa96b24901ce9208c2eef4bf (diff)
parent45c94aba1b90dbe86c5583c8782cc3f624249fa1 (diff)
Merge remote-tracking branch 'dev/master'
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/projects/jobs_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/projects/jobs_spec.rb b/spec/features/projects/jobs_spec.rb
index 35b1c46ecf6..83293c0ca7d 100644
--- a/spec/features/projects/jobs_spec.rb
+++ b/spec/features/projects/jobs_spec.rb
@@ -135,6 +135,20 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
end
end
+ context 'sidebar' do
+ let(:job) { create(:ci_build, :success, :trace_live, pipeline: pipeline, name: '<img src=x onerror=alert(document.domain)>') }
+
+ before do
+ visit project_job_path(project, job)
+ end
+
+ it 'renders escaped tooltip name' do
+ page.within('aside.right-sidebar') do
+ expect(find('.active.build-job a')['data-title']).to eq('<img src="x"> - passed')
+ end
+ end
+ end
+
context 'when job is not running', :js do
let(:job) { create(:ci_build, :success, :trace_artifact, pipeline: pipeline) }