Commit 8196794c authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add a test for job empty state with missing trace

parent 2ea25cbc
...@@ -7,7 +7,7 @@ module Gitlab ...@@ -7,7 +7,7 @@ module Gitlab
{ {
image: 'illustrations/skipped-job_empty.svg', image: 'illustrations/skipped-job_empty.svg',
size: 'svg-430', size: 'svg-430',
title: _('This job does not have a trace.'), title: _('This job does not have a trace.')
} }
end end
......
...@@ -464,6 +464,17 @@ feature 'Jobs' do ...@@ -464,6 +464,17 @@ feature 'Jobs' do
expect(page).to have_content('This job has been skipped') expect(page).to have_content('This job has been skipped')
end end
end end
context 'when job is running but has no trace yet' do
let(:job) { create(:ci_build, :running, pipeline: pipeline) }
it 'renders empty state' do
visit project_job_path(project, job)
expect(job).not_to have_trace
expect(page).to have_content('This job does not have a trace.')
end
end
end end
describe "POST /:project/jobs/:id/cancel", :js do describe "POST /:project/jobs/:id/cancel", :js do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment