summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-07 15:07:34 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-07 15:07:34 +0000
commitb4028d450087e97f26d4baa23e08396bcbabe3e0 (patch)
treef84a5cbb29e43bab0ba58db1bc5619112c8c482e /spec/features
parent05f1d5d9813332bdd456cb358517e56168a24224 (diff)
downloadgitlab-ce-b4028d450087e97f26d4baa23e08396bcbabe3e0.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/projects/jobs_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/features/projects/jobs_spec.rb b/spec/features/projects/jobs_spec.rb
index 26ba7ae7a29..f9ff076a416 100644
--- a/spec/features/projects/jobs_spec.rb
+++ b/spec/features/projects/jobs_spec.rb
@@ -306,6 +306,21 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
end
end
+ context 'when job is waiting for resource', :js do
+ let(:job) { create(:ci_build, :waiting_for_resource, pipeline: pipeline, resource_group: resource_group) }
+ let(:resource_group) { create(:ci_resource_group, project: project) }
+
+ before do
+ visit project_job_path(project, job)
+ wait_for_requests
+ end
+
+ it 'shows correct UI components' do
+ expect(page).to have_content("This job is waiting for resource: #{resource_group.key}")
+ expect(page).to have_link("Cancel this job")
+ end
+ end
+
context "Job from other project" do
before do
visit project_job_path(project, job2)