diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-14 15:09:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-14 15:09:51 +0300 |
commit | 9223573b85bcfdd21953f52e0d2c5cb587e366a1 (patch) | |
tree | 7dfd09536b948d560fc442014a95a221327b6567 /spec/support | |
parent | 1fc72cb8765dab466da8555b70eb744a53a74a80 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/shared_examples/features/variable_list_shared_examples.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/support/shared_examples/features/variable_list_shared_examples.rb b/spec/support/shared_examples/features/variable_list_shared_examples.rb index c75f437a313..3a91b798bbd 100644 --- a/spec/support/shared_examples/features/variable_list_shared_examples.rb +++ b/spec/support/shared_examples/features/variable_list_shared_examples.rb @@ -170,15 +170,13 @@ RSpec.shared_examples 'variable list' do expect(find('[data-testid="alert-danger"]').text).to have_content('(key) has already been taken') end - it 'prevents a variable to be added if no values are provided when a variable is set to masked' do + it 'allows variable to be added even if no value is provided' do click_button('Add variable') page.within('#add-ci-variable') do find('[data-testid="pipeline-form-ci-variable-key"] input').set('empty_mask_key') - find('[data-testid="ci-variable-protected-checkbox"]').click - find('[data-testid="ci-variable-masked-checkbox"]').click - expect(find_button('Add variable', disabled: true)).to be_present + expect(find_button('Add variable', disabled: false)).to be_present end end |