diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-04-10 15:37:08 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-04-11 11:52:09 +0300 |
commit | 8196794c1efb5492a7df24337d2fc08fe76cc8f7 (patch) | |
tree | e559c0d7ab86410a07b641c87b5860f32e5bc0b5 /spec/features | |
parent | 2ea25cbcaff0ca62b0570a129771f08bca532820 (diff) |
Add a test for job empty state with missing trace
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/jobs_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/features/projects/jobs_spec.rb b/spec/features/projects/jobs_spec.rb index 749a1b81872..bba39c9f37f 100644 --- a/spec/features/projects/jobs_spec.rb +++ b/spec/features/projects/jobs_spec.rb @@ -464,6 +464,17 @@ feature 'Jobs' do expect(page).to have_content('This job has been skipped') 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 describe "POST /:project/jobs/:id/cancel", :js do |