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:
authorMarin Jankovski <marin@gitlab.com>2018-04-12 10:54:48 +0300
committerMarin Jankovski <marin@gitlab.com>2018-04-12 10:54:48 +0300
commitb9d868e33d232808a4c964e2e3e28b4874345e73 (patch)
tree1332cd623be6c8ea6e7f18c9d00f7c4c86e248cd /spec/features
parent85b873e9779a40f88cca95579fe254fbeb695ddc (diff)
parent11bfc4b29b92a3748423114a0f9576d6b96bc9ff (diff)
Merge branch 'fix/gb/fix-pipeline-statuses-illustrations' into 'master'
Fix empty state for build that does not have a trace Closes #45204 See merge request gitlab-org/gitlab-ce!18278
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..a460024542c 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 failed but has no trace' do
+ let(:job) { create(:ci_build, :failed, 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