提交 8196794c 编写于 作者: G Grzegorz Bizon

Add a test for job empty state with missing trace

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册