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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-11-28 06:15:07 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-11-28 06:15:07 +0300
commit7c21db7a4eb0631b851a5ae65fae23d7423e735b (patch)
treef386bc7d0a579efc6a4b15e2c484314f4f104d7d /spec/views
parenta250be3e205135d2d8310f644d9b650643f406bc (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/projects/edit.html.haml_spec.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/views/projects/edit.html.haml_spec.rb b/spec/views/projects/edit.html.haml_spec.rb
index 8c1a8cf21d0..69eba01687f 100644
--- a/spec/views/projects/edit.html.haml_spec.rb
+++ b/spec/views/projects/edit.html.haml_spec.rb
@@ -111,4 +111,24 @@ RSpec.describe 'projects/edit' do
expect(rendered).to have_content(_('GitLab Pages has moved'))
end
end
+
+ describe 'notifications on renaming the project path' do
+ it 'displays the warning regarding the container registry' do
+ render
+
+ expect(rendered).to have_content('new uploads to the container registry are blocked')
+ end
+
+ context 'when the feature renaming_project_with_tags is disabled' do
+ before do
+ stub_feature_flags(renaming_project_with_tags: false)
+ end
+
+ it 'does not display the warning regarding the container registry' do
+ render
+
+ expect(rendered).not_to have_content('new uploads to the container registry are blocked')
+ end
+ end
+ end
end