diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-09 00:11:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-09 00:11:20 +0300 |
commit | 6a315e2d9c09da0efffdabed91ee872e867a981c (patch) | |
tree | 177a685b4ee5929e0e0b3b7b29430e893321c959 /spec/frontend/work_items | |
parent | 375b68fe813abba5e362aa6054eae7b325e92e03 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/work_items')
-rw-r--r-- | spec/frontend/work_items/components/work_item_state_badge_spec.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/frontend/work_items/components/work_item_state_badge_spec.js b/spec/frontend/work_items/components/work_item_state_badge_spec.js index 888d712cc5a..248f16a4081 100644 --- a/spec/frontend/work_items/components/work_item_state_badge_spec.js +++ b/spec/frontend/work_items/components/work_item_state_badge_spec.js @@ -1,4 +1,4 @@ -import { GlBadge } from '@gitlab/ui'; +import { GlBadge, GlIcon } from '@gitlab/ui'; import { shallowMount } from '@vue/test-utils'; import { STATE_OPEN, STATE_CLOSED } from '~/work_items/constants'; import WorkItemStateBadge from '~/work_items/components/work_item_state_badge.vue'; @@ -14,6 +14,7 @@ describe('WorkItemStateBadge', () => { }); }; const findStatusBadge = () => wrapper.findComponent(GlBadge); + const findStatusBadgeIcon = () => wrapper.findComponent(GlIcon); it.each` state | icon | stateText | variant @@ -24,7 +25,7 @@ describe('WorkItemStateBadge', () => { ({ state, icon, stateText, variant }) => { createComponent({ workItemState: state }); - expect(findStatusBadge().props('icon')).toBe(icon); + expect(findStatusBadgeIcon().props('name')).toBe(icon); expect(findStatusBadge().props('variant')).toBe(variant); expect(findStatusBadge().text()).toBe(stateText); }, |