Commit e3b165a3 authored by Scott Stern's avatar Scott Stern Committed by Phil Hughes

Rename assignees_dropdown to multiselect_dropdown

parent 77a55ca5
...@@ -4,7 +4,7 @@ import { GlDropdownItem, GlDropdownDivider, GlAvatarLabeled, GlAvatarLink } from ...@@ -4,7 +4,7 @@ import { GlDropdownItem, GlDropdownDivider, GlAvatarLabeled, GlAvatarLink } from
import { __, n__ } from '~/locale'; import { __, n__ } from '~/locale';
import IssuableAssignees from '~/sidebar/components/assignees/issuable_assignees.vue'; import IssuableAssignees from '~/sidebar/components/assignees/issuable_assignees.vue';
import BoardEditableItem from '~/boards/components/sidebar/board_editable_item.vue'; import BoardEditableItem from '~/boards/components/sidebar/board_editable_item.vue';
import AssigneesDropdown from '~/vue_shared/components/sidebar/assignees_dropdown.vue'; import MultiSelectDropdown from '~/vue_shared/components/sidebar/multiselect_dropdown.vue';
import getIssueParticipants from '~/vue_shared/components/sidebar/queries/getIssueParticipants.query.graphql'; import getIssueParticipants from '~/vue_shared/components/sidebar/queries/getIssueParticipants.query.graphql';
export default { export default {
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
components: { components: {
BoardEditableItem, BoardEditableItem,
IssuableAssignees, IssuableAssignees,
AssigneesDropdown, MultiSelectDropdown,
GlDropdownItem, GlDropdownItem,
GlDropdownDivider, GlDropdownDivider,
GlAvatarLabeled, GlAvatarLabeled,
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
</template> </template>
<template #default> <template #default>
<assignees-dropdown <multi-select-dropdown
class="w-100" class="w-100"
:text="$options.i18n.assignees" :text="$options.i18n.assignees"
:header-text="$options.i18n.assignTo" :header-text="$options.i18n.assignTo"
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
</gl-avatar-link> </gl-avatar-link>
</gl-dropdown-item> </gl-dropdown-item>
</template> </template>
</assignees-dropdown> </multi-select-dropdown>
</template> </template>
</board-editable-item> </board-editable-item>
</template> </template>
...@@ -2,7 +2,7 @@ import { mount } from '@vue/test-utils'; ...@@ -2,7 +2,7 @@ import { mount } from '@vue/test-utils';
import { GlDropdownItem, GlAvatarLink, GlAvatarLabeled } from '@gitlab/ui'; import { GlDropdownItem, GlAvatarLink, GlAvatarLabeled } from '@gitlab/ui';
import BoardAssigneeDropdown from '~/boards/components/board_assignee_dropdown.vue'; import BoardAssigneeDropdown from '~/boards/components/board_assignee_dropdown.vue';
import IssuableAssignees from '~/sidebar/components/assignees/issuable_assignees.vue'; import IssuableAssignees from '~/sidebar/components/assignees/issuable_assignees.vue';
import AssigneesDropdown from '~/vue_shared/components/sidebar/assignees_dropdown.vue'; import MultiSelectDropdown from '~/vue_shared/components/sidebar/multiselect_dropdown.vue';
import BoardEditableItem from '~/boards/components/sidebar/board_editable_item.vue'; import BoardEditableItem from '~/boards/components/sidebar/board_editable_item.vue';
import store from '~/boards/stores'; import store from '~/boards/stores';
import getIssueParticipants from '~/vue_shared/components/sidebar/queries/getIssueParticipants.query.graphql'; import getIssueParticipants from '~/vue_shared/components/sidebar/queries/getIssueParticipants.query.graphql';
...@@ -109,7 +109,7 @@ describe('BoardCardAssigneeDropdown', () => { ...@@ -109,7 +109,7 @@ describe('BoardCardAssigneeDropdown', () => {
createComponent(); createComponent();
expect(wrapper.find(IssuableAssignees).isVisible()).toBe(true); expect(wrapper.find(IssuableAssignees).isVisible()).toBe(true);
expect(wrapper.find(AssigneesDropdown).isVisible()).toBe(false); expect(wrapper.find(MultiSelectDropdown).isVisible()).toBe(false);
}); });
}); });
...@@ -122,7 +122,7 @@ describe('BoardCardAssigneeDropdown', () => { ...@@ -122,7 +122,7 @@ describe('BoardCardAssigneeDropdown', () => {
it('shows assignees dropdown', async () => { it('shows assignees dropdown', async () => {
expect(wrapper.find(IssuableAssignees).isVisible()).toBe(false); expect(wrapper.find(IssuableAssignees).isVisible()).toBe(false);
expect(wrapper.find(AssigneesDropdown).isVisible()).toBe(true); expect(wrapper.find(MultiSelectDropdown).isVisible()).toBe(true);
}); });
it('shows the issue returned as the activeIssue', async () => { it('shows the issue returned as the activeIssue', async () => {
......
import { shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import { getByText } from '@testing-library/dom'; import { getByText } from '@testing-library/dom';
import AssigneesDropdown from '~/vue_shared/components/sidebar/assignees_dropdown.vue'; import MultiSelectDropdown from '~/vue_shared/components/sidebar/multiselect_dropdown.vue';
describe('AssigneesDropdown Component', () => { describe('MultiSelectDropdown Component', () => {
it('renders items slot', () => { it('renders items slot', () => {
const wrapper = shallowMount(AssigneesDropdown, { const wrapper = shallowMount(MultiSelectDropdown, {
propsData: { propsData: {
text: '', text: '',
headerText: '', headerText: '',
......
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