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:
Diffstat (limited to 'spec/features/projects/settings/secure_files_spec.rb')
-rw-r--r--spec/features/projects/settings/secure_files_spec.rb29
1 files changed, 4 insertions, 25 deletions
diff --git a/spec/features/projects/settings/secure_files_spec.rb b/spec/features/projects/settings/secure_files_spec.rb
index ee38acf1953..9afe1f4de54 100644
--- a/spec/features/projects/settings/secure_files_spec.rb
+++ b/spec/features/projects/settings/secure_files_spec.rb
@@ -2,7 +2,7 @@
require 'spec_helper'
-RSpec.describe 'Secure Files', :js do
+RSpec.describe 'Secure Files', :js, feature_category: :projects do
let(:project) { create(:project) }
let(:user) { create(:user) }
@@ -12,31 +12,10 @@ RSpec.describe 'Secure Files', :js do
sign_in(user)
end
- context 'when the :ci_secure_files feature flag is enabled' do
- before do
- stub_feature_flags(ci_secure_files: true)
-
- visit project_settings_ci_cd_path(project)
- end
-
- context 'authenticated user with admin permissions' do
- it 'shows the secure files settings' do
- expect(page).to have_content('Secure Files')
- end
- end
- end
-
- context 'when the :ci_secure_files feature flag is disabled' do
- before do
- stub_feature_flags(ci_secure_files: false)
-
+ context 'authenticated user with admin permissions' do
+ it 'shows the secure files settings' do
visit project_settings_ci_cd_path(project)
- end
-
- context 'authenticated user with admin permissions' do
- it 'does not shows the secure files settings' do
- expect(page).not_to have_content('Secure Files')
- end
+ expect(page).to have_content('Secure Files')
end
end