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
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2018-10-15 15:51:30 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-10-15 15:51:30 +0300
commit87589dee9230674ab25170033e51799ec77ae5c4 (patch)
treebeac656f9c0829a8ab7b114f9aee66c0828ce681 /spec
parentd7ecf41b0bb01e9469fb56cf4d985278ebadd127 (diff)
parent5d11f55f7672c9ac2852a354dc03e9914f0c4312 (diff)
Merge branch '52614-bugs-on-deployment-status-in-job-log-page' into 'master'
Send deployment_status when job starts environment Closes #52614 See merge request gitlab-org/gitlab-ce!22354
Diffstat (limited to 'spec')
-rw-r--r--spec/features/projects/jobs_spec.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/features/projects/jobs_spec.rb b/spec/features/projects/jobs_spec.rb
index 6224cbffe9d..a3a301504ff 100644
--- a/spec/features/projects/jobs_spec.rb
+++ b/spec/features/projects/jobs_spec.rb
@@ -423,6 +423,31 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
end
end
+ context 'when job stops environment', :js do
+ let(:environment) { create(:environment, name: 'production', project: project) }
+ let(:build) do
+ create(
+ :ci_build,
+ :success,
+ :trace_live,
+ environment: environment.name,
+ pipeline: pipeline,
+ options: { environment: { action: 'stop' } }
+ )
+ end
+
+ before do
+ visit project_job_path(project, build)
+ wait_for_requests
+ end
+
+ it 'does not show environment information banner' do
+ expect(page).not_to have_selector('.js-environment-container')
+ expect(page).not_to have_selector('.environment-information')
+ expect(page).not_to have_text(environment.name)
+ end
+ end
+
describe 'environment info in job view', :js do
before do
visit project_job_path(project, job)