2022-01-26 12:08:38 +05:30
|
|
|
import { mockIssuable as issuable } from 'jest/vue_shared/issuable/list/mock_data';
|
2021-01-03 14:25:43 +05:30
|
|
|
|
|
|
|
export const mockIssuable = {
|
|
|
|
...issuable,
|
|
|
|
id: 'gid://gitlab/Issue/30',
|
|
|
|
title: 'Sample title',
|
|
|
|
titleHtml: 'Sample title',
|
|
|
|
description: '# Summary',
|
|
|
|
descriptionHtml:
|
|
|
|
'<h1 data-sourcepos="1:1-1:25" dir="auto">
<a id="user-content-magnoque-it-lurida-deus" class="anchor" href="#magnoque-it-lurida-deus" aria-hidden="true"></a>Summary</h1>',
|
|
|
|
state: 'opened',
|
|
|
|
blocked: false,
|
|
|
|
confidential: false,
|
|
|
|
updatedBy: issuable.author,
|
2021-04-17 20:07:23 +05:30
|
|
|
type: 'ISSUE',
|
2021-01-03 14:25:43 +05:30
|
|
|
currentUserTodos: {
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
id: 'gid://gitlab/Todo/489',
|
|
|
|
state: 'done',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const mockIssuableShowProps = {
|
|
|
|
issuable: mockIssuable,
|
|
|
|
descriptionHelpPath: '/help/user/markdown',
|
|
|
|
descriptionPreviewPath: '/gitlab-org/gitlab-shell/preview_markdown',
|
2021-04-17 20:07:23 +05:30
|
|
|
taskListUpdatePath: `${mockIssuable.webUrl}.json`,
|
|
|
|
taskListLockVersion: 1,
|
2021-01-03 14:25:43 +05:30
|
|
|
editFormVisible: false,
|
|
|
|
enableAutocomplete: true,
|
2021-02-22 17:27:13 +05:30
|
|
|
enableAutosave: true,
|
2021-04-29 21:17:54 +05:30
|
|
|
enableZenMode: true,
|
2021-04-17 20:07:23 +05:30
|
|
|
enableTaskList: true,
|
2021-01-03 14:25:43 +05:30
|
|
|
enableEdit: true,
|
2021-02-22 17:27:13 +05:30
|
|
|
showFieldTitle: false,
|
2022-07-16 23:28:13 +05:30
|
|
|
statusBadgeClass: 'issuable-status-badge-open',
|
|
|
|
statusIcon: 'issues',
|
|
|
|
statusIconClass: 'gl-sm-display-none',
|
2021-04-17 20:07:23 +05:30
|
|
|
taskCompletionStatus: {
|
|
|
|
completedCount: 0,
|
|
|
|
count: 5,
|
|
|
|
},
|
2021-01-03 14:25:43 +05:30
|
|
|
};
|