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/frontend/ci | |
parent | 1fc72cb8765dab466da8555b70eb744a53a74a80 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/ci')
-rw-r--r-- | spec/frontend/ci/ci_variable_list/components/ci_variable_modal_spec.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/frontend/ci/ci_variable_list/components/ci_variable_modal_spec.js b/spec/frontend/ci/ci_variable_list/components/ci_variable_modal_spec.js index 40b04ca3e00..e9484cfce57 100644 --- a/spec/frontend/ci/ci_variable_list/components/ci_variable_modal_spec.js +++ b/spec/frontend/ci/ci_variable_list/components/ci_variable_modal_spec.js @@ -495,6 +495,21 @@ describe('Ci variable modal', () => { }); }); + describe('when the value is empty', () => { + beforeEach(() => { + const [variable] = mockVariables; + const emptyValueVariable = { ...variable, value: '' }; + createComponent({ + mountFn: mountExtended, + props: { selectedVariable: emptyValueVariable }, + }); + }); + + it('allows user to submit', () => { + expect(findAddorUpdateButton().attributes('disabled')).toBeUndefined(); + }); + }); + describe('when the mask state is invalid', () => { beforeEach(async () => { const [variable] = mockVariables; |