Commit 91ddcecb authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '352128-add-autocomplete-off' into 'master'

Add autocomplete off to text inputs

See merge request gitlab-org/gitlab!81381
parents 872a0e51 f4188054
......@@ -207,7 +207,7 @@ export default {
{{ $options.i18n.description }}
</p>
</header>
<gl-form @submit.prevent="submitForm">
<gl-form autocomplete="off" @submit.prevent="submitForm">
<gl-alert v-if="shouldShowAlert" variant="danger" dismissible @dismiss="dismissAlert">
<ul v-if="errors.length > 1" class="gl-mb-0 gl-pl-5">
<li v-for="error in errors" :key="error">{{ error }}</li>
......
......@@ -91,6 +91,10 @@ describe('New vulnerability component', () => {
expect(wrapper.findComponent(GlForm).exists()).toBe(true);
});
it('has autocomplete turned off', () => {
expect(wrapper.findComponent(GlForm).attributes('autocomplete')).toBe('off');
});
it.each`
section | selector | fields
${'Name and Description'} | ${findSectionName} | ${inputs.sectionName}
......
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