diff options
Diffstat (limited to 'spec/frontend/sidebar')
4 files changed, 11 insertions, 16 deletions
diff --git a/spec/frontend/sidebar/__snapshots__/confidential_issue_sidebar_spec.js.snap b/spec/frontend/sidebar/__snapshots__/confidential_issue_sidebar_spec.js.snap index 11ab1ca3aaa..2367667544d 100644 --- a/spec/frontend/sidebar/__snapshots__/confidential_issue_sidebar_spec.js.snap +++ b/spec/frontend/sidebar/__snapshots__/confidential_issue_sidebar_spec.js.snap @@ -10,7 +10,6 @@ exports[`Confidential Issue Sidebar Block renders for confidential = false and i title="Not confidential" > <gl-icon-stub - aria-hidden="true" name="eye" size="16" /> @@ -35,7 +34,6 @@ exports[`Confidential Issue Sidebar Block renders for confidential = false and i data-testid="not-confidential" > <gl-icon-stub - aria-hidden="true" class="sidebar-item-icon inline" name="eye" size="16" @@ -58,7 +56,6 @@ exports[`Confidential Issue Sidebar Block renders for confidential = false and i title="Not confidential" > <gl-icon-stub - aria-hidden="true" name="eye" size="16" /> @@ -91,7 +88,6 @@ exports[`Confidential Issue Sidebar Block renders for confidential = false and i data-testid="not-confidential" > <gl-icon-stub - aria-hidden="true" class="sidebar-item-icon inline" name="eye" size="16" @@ -114,7 +110,6 @@ exports[`Confidential Issue Sidebar Block renders for confidential = true and is title="Confidential" > <gl-icon-stub - aria-hidden="true" name="eye-slash" size="16" /> @@ -138,7 +133,6 @@ exports[`Confidential Issue Sidebar Block renders for confidential = true and is class="value sidebar-item-value hide-collapsed" > <gl-icon-stub - aria-hidden="true" class="sidebar-item-icon inline is-active" name="eye-slash" size="16" @@ -161,7 +155,6 @@ exports[`Confidential Issue Sidebar Block renders for confidential = true and is title="Confidential" > <gl-icon-stub - aria-hidden="true" name="eye-slash" size="16" /> @@ -193,7 +186,6 @@ exports[`Confidential Issue Sidebar Block renders for confidential = true and is class="value sidebar-item-value hide-collapsed" > <gl-icon-stub - aria-hidden="true" class="sidebar-item-icon inline is-active" name="eye-slash" size="16" diff --git a/spec/frontend/sidebar/__snapshots__/todo_spec.js.snap b/spec/frontend/sidebar/__snapshots__/todo_spec.js.snap index 6640c0844e2..e295c587d70 100644 --- a/spec/frontend/sidebar/__snapshots__/todo_spec.js.snap +++ b/spec/frontend/sidebar/__snapshots__/todo_spec.js.snap @@ -4,13 +4,8 @@ exports[`SidebarTodo template renders component container element with proper da <button aria-label="Mark as done" class="btn btn-default btn-todo issuable-header-btn float-right" - data-boundary="viewport" - data-container="body" data-issuable-id="1" data-issuable-type="epic" - data-original-title="" - data-placement="left" - title="" type="button" > <gl-icon-stub diff --git a/spec/frontend/sidebar/issuable_assignees_spec.js b/spec/frontend/sidebar/issuable_assignees_spec.js index 076616de040..af4dc315aad 100644 --- a/spec/frontend/sidebar/issuable_assignees_spec.js +++ b/spec/frontend/sidebar/issuable_assignees_spec.js @@ -26,8 +26,8 @@ describe('IssuableAssignees', () => { createComponent(); }); - it('renders "None"', () => { - expect(findEmptyAssignee().text()).toBe('None'); + it('renders "None - assign yourself"', () => { + expect(findEmptyAssignee().text()).toBe('None - assign yourself'); }); }); @@ -38,4 +38,12 @@ describe('IssuableAssignees', () => { expect(findUncollapsedAssigneeList().exists()).toBe(true); }); }); + + describe('when clicking "assign yourself"', () => { + it('emits "assign-self"', () => { + createComponent(); + wrapper.find('[data-testid="assign-yourself"]').vm.$emit('click'); + expect(wrapper.emitted('assign-self')).toHaveLength(1); + }); + }); }); diff --git a/spec/frontend/sidebar/sidebar_labels_spec.js b/spec/frontend/sidebar/sidebar_labels_spec.js index 36d1e129b6a..ab08a1e65e2 100644 --- a/spec/frontend/sidebar/sidebar_labels_spec.js +++ b/spec/frontend/sidebar/sidebar_labels_spec.js @@ -3,7 +3,7 @@ import { mockLabels, mockRegularLabel, } from 'jest/vue_shared/components/sidebar/labels_select_vue/mock_data'; -import updateIssueLabelsMutation from '~/boards/queries/issue_set_labels.mutation.graphql'; +import updateIssueLabelsMutation from '~/boards/graphql/issue_set_labels.mutation.graphql'; import { MutationOperationMode } from '~/graphql_shared/utils'; import { IssuableType } from '~/issue_show/constants'; import SidebarLabels from '~/sidebar/components/labels/sidebar_labels.vue'; |