diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-02 00:13:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-02 00:13:05 +0300 |
commit | 58acbd41a1ee5aa51777f2ef88ce03bd698530c7 (patch) | |
tree | 3dc36a5296cf53123f494a49892cbb8267d31907 /spec/features/project_variables_spec.rb | |
parent | ad1e76fb4d1392c890c8b5e218a256a416d5a50b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/project_variables_spec.rb')
-rw-r--r-- | spec/features/project_variables_spec.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/spec/features/project_variables_spec.rb b/spec/features/project_variables_spec.rb index ae506a4bad7..69b8408dcd6 100644 --- a/spec/features/project_variables_spec.rb +++ b/spec/features/project_variables_spec.rb @@ -16,7 +16,18 @@ RSpec.describe 'Project variables', :js, feature_category: :pipeline_composition wait_for_requests end - it_behaves_like 'variable list' + context 'when ci_variables_pages FF is enabled' do + it_behaves_like 'variable list' + it_behaves_like 'variable list pagination', :ci_variable + end + + context 'when ci_variables_pages FF is disabled' do + before do + stub_feature_flags(ci_variables_pages: false) + end + + it_behaves_like 'variable list' + end it 'adds a new variable with an environment scope' do click_button('Add variable') |