diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-03-17 20:33:03 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-03-17 20:33:53 +0300 |
commit | 67fc0a2b92f49250b14562a04539b775f0d55cc4 (patch) | |
tree | 8b37b246db1914086568edd1c472573241edd18d /spec/javascripts/ci_variable_list/native_form_variable_list_spec.js | |
parent | 68c6e410bd02207b621f9339edf3fc53d0bde7e8 (diff) |
Check for secret_key and secret_value in CI Variable native list js spec
Diffstat (limited to 'spec/javascripts/ci_variable_list/native_form_variable_list_spec.js')
-rw-r--r-- | spec/javascripts/ci_variable_list/native_form_variable_list_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/ci_variable_list/native_form_variable_list_spec.js b/spec/javascripts/ci_variable_list/native_form_variable_list_spec.js index 1ea8d86cb7e..d3bcbdd92c1 100644 --- a/spec/javascripts/ci_variable_list/native_form_variable_list_spec.js +++ b/spec/javascripts/ci_variable_list/native_form_variable_list_spec.js @@ -19,8 +19,8 @@ describe('NativeFormVariableList', () => { describe('onFormSubmit', () => { it('should clear out the `name` attribute on the inputs for the last empty row on form submission (avoid BE validation)', () => { const $row = $wrapper.find('.js-row'); - expect($row.find('.js-ci-variable-input-key').attr('name')).toBe('schedule[variables_attributes][][key]'); - expect($row.find('.js-ci-variable-input-value').attr('name')).toBe('schedule[variables_attributes][][value]'); + expect($row.find('.js-ci-variable-input-key').attr('name')).toBe('schedule[variables_attributes][][secret_key]'); + expect($row.find('.js-ci-variable-input-value').attr('name')).toBe('schedule[variables_attributes][][secret_value]'); $wrapper.closest('form').trigger('trigger-submit'); |