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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-04-10 15:37:08 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-04-11 11:52:09 +0300
commit8196794c1efb5492a7df24337d2fc08fe76cc8f7 (patch)
treee559c0d7ab86410a07b641c87b5860f32e5bc0b5 /spec/features
parent2ea25cbcaff0ca62b0570a129771f08bca532820 (diff)
Add a test for job empty state with missing trace
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/projects/jobs_spec.rb11
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