Commit 6a90249b authored by mfluharty's avatar mfluharty

Add masked toggle click to frontend spec

Need to set masked to true before testing now that the default is false
parent 341f956a
......@@ -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', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment