diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-09 18:08:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-09 18:08:32 +0300 |
commit | e9de69b545c25c9cb7fd410f9bf8ba34c6bb727b (patch) | |
tree | a59ae937a12f9e03e7c4269af4a3a0fcb1e540b2 /spec/frontend/vue_shared/components/listbox_input | |
parent | 1935f3e81b99c00697bf0b4d6a44d64068b34745 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/vue_shared/components/listbox_input')
-rw-r--r-- | spec/frontend/vue_shared/components/listbox_input/listbox_input_spec.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/frontend/vue_shared/components/listbox_input/listbox_input_spec.js b/spec/frontend/vue_shared/components/listbox_input/listbox_input_spec.js index f7c705c495a..7ed6a59c844 100644 --- a/spec/frontend/vue_shared/components/listbox_input/listbox_input_spec.js +++ b/spec/frontend/vue_shared/components/listbox_input/listbox_input_spec.js @@ -23,6 +23,7 @@ describe('ListboxInput', () => { options: [{ text: 'Item 3', value: '3' }], }, ]; + const id = 'id'; // Finders const findGlFormGroup = () => wrapper.findComponent(GlFormGroup); @@ -39,6 +40,9 @@ describe('ListboxInput', () => { items, ...propsData, }, + attrs: { + id, + }, }); }; @@ -79,6 +83,10 @@ describe('ListboxInput', () => { it('is not filterable with few items', () => { expect(findGlListbox().props('searchable')).toBe(false); }); + + it('passes attributes to the root element', () => { + expect(findGlFormGroup().attributes('id')).toBe(id); + }); }); describe('toggle text', () => { |