Commit 0b27af82 authored by Phil Hughes's avatar Phil Hughes

Merge branch '334211-fix-form-clearing' into 'master'

Fix form clearing for company size

See merge request gitlab-org/gitlab!72099
parents 15708400 935911c7
......@@ -151,7 +151,7 @@ export default {
this.firstName = '';
this.lastName = '';
this.companyName = '';
this.companySize = '';
this.companySize = null;
this.phoneNumber = '';
this.country = null;
this.state = null;
......
......@@ -150,6 +150,11 @@ describe('HandRaiseLeadButton', () => {
comment: 'comment',
...formData,
});
['firstName', 'lastName', 'companyName', 'phoneNumber'].forEach((f) =>
expect(wrapper.vm[f]).toBe(''),
);
['companySize', 'country', 'state'].forEach((f) => expect(wrapper.vm[f]).toBe(null));
});
});
});
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