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/project_variables_spec.rb')
-rw-r--r--spec/features/project_variables_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/project_variables_spec.rb b/spec/features/project_variables_spec.rb
index c4f78bf4ea3..e2fa924af67 100644
--- a/spec/features/project_variables_spec.rb
+++ b/spec/features/project_variables_spec.rb
@@ -12,6 +12,8 @@ RSpec.describe 'Project variables', :js, feature_category: :secrets_management d
sign_in(user)
project.add_maintainer(user)
project.variables << variable
+
+ stub_feature_flags(ci_variable_drawer: false)
visit page_path
wait_for_requests
end
@@ -49,4 +51,14 @@ RSpec.describe 'Project variables', :js, feature_category: :secrets_management d
expect(find('.js-ci-variable-row:first-child [data-label="Environments"]').text).to eq('review/*')
end
end
+
+ context 'when ci_variable_drawer FF is enabled' do
+ before do
+ stub_feature_flags(ci_variable_drawer: true)
+ visit page_path
+ wait_for_requests
+ end
+
+ it_behaves_like 'variable list drawer'
+ end
end