summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormfluharty <mfluharty@gitlab.com>2019-06-06 17:00:25 +0100
committermfluharty <mfluharty@gitlab.com>2019-06-06 17:00:25 +0100
commit6a90249b6a9c14391bf1ada9bb4726e8bf1e4ffd (patch)
treee2dbed716c427218a284c1cb3de92768f387ded9 /spec
parent341f956a4c86eab8abfd931d6a3f5c4b527e4095 (diff)
downloadgitlab-ce-6a90249b6a9c14391bf1ada9bb4726e8bf1e4ffd.tar.gz
Need to set masked to true before testing now that the default is false
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/ci_variable_list/ci_variable_list_spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/ci_variable_list/ci_variable_list_spec.js b/spec/javascripts/ci_variable_list/ci_variable_list_spec.js
index 1b2b186234e..064113e879a 100644
--- a/spec/javascripts/ci_variable_list/ci_variable_list_spec.js
+++ b/spec/javascripts/ci_variable_list/ci_variable_list_spec.js
@@ -154,11 +154,11 @@ describe('VariableList', () => {
describe('validateMaskability', () => {
let $row;
- const maskingErrorElement = '.js-row:nth-child(2) .masking-validation-error';
+ const maskingErrorElement = '.js-row:last-child .masking-validation-error';
beforeEach(() => {
$row = $wrapper.find('.js-row:last-child');
- $row.find('.js-ci-variable-input-key').val('variable-key');
+ $row.find('.ci-variable-masked-item .js-project-feature-toggle').click();
});
it('has a regex provided via a data attribute', () => {