diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-10-11 21:33:02 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-10-11 21:33:02 +0300 |
commit | dd0806d095ca481ad2cc3f72feaf3de98cbf093a (patch) | |
tree | 910ecbc0a8277318d7069c188cbfa7cec4b68f91 /spec/features/projects | |
parent | e5ae0be4381e7ca9a0e226a75132fb77916648a1 (diff) |
Fix erased block not being rendered when job was erased
Diffstat (limited to 'spec/features/projects')
-rw-r--r-- | spec/features/projects/jobs_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/features/projects/jobs_spec.rb b/spec/features/projects/jobs_spec.rb index 2076ce7b4f7..d981a919fd8 100644 --- a/spec/features/projects/jobs_spec.rb +++ b/spec/features/projects/jobs_spec.rb @@ -663,6 +663,19 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do expect(page).to have_content('This job does not have a trace.') end end + + context 'with erased job', :js do + let(:job) { create(:ci_build, :erased, pipeline: pipeline) } + + it'renders erased job warning' do + visit project_job_path(project, job) + wait_for_requests + + page.within('.js-job-erased-block') do + expect(page).to have_content('Job has been erased') + end + end + end end describe "POST /:project/jobs/:id/cancel", :js do |