diff options
Diffstat (limited to 'spec/frontend/groups/components/item_caret_spec.js')
-rw-r--r-- | spec/frontend/groups/components/item_caret_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/frontend/groups/components/item_caret_spec.js b/spec/frontend/groups/components/item_caret_spec.js index bfe27be9b51..4ff7482414c 100644 --- a/spec/frontend/groups/components/item_caret_spec.js +++ b/spec/frontend/groups/components/item_caret_spec.js @@ -27,12 +27,12 @@ describe('ItemCaretComponent', () => { it('should render caret down icon if `isGroupOpen` prop is `true`', () => { vm = createComponent(true); - expect(vm.$el.querySelector('svg use').getAttribute('xlink:href')).toContain('angle-down'); + expect(vm.$el.querySelector('svg').getAttribute('data-testid')).toBe('angle-down-icon'); }); it('should render caret right icon if `isGroupOpen` prop is `false`', () => { vm = createComponent(); - expect(vm.$el.querySelector('svg use').getAttribute('xlink:href')).toContain('angle-right'); + expect(vm.$el.querySelector('svg').getAttribute('data-testid')).toBe('angle-right-icon'); }); }); }); |