Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/boards/mock_data.js')
-rw-r--r--spec/frontend/boards/mock_data.js109
1 files changed, 106 insertions, 3 deletions
diff --git a/spec/frontend/boards/mock_data.js b/spec/frontend/boards/mock_data.js
index e5167120542..74733d1fd95 100644
--- a/spec/frontend/boards/mock_data.js
+++ b/spec/frontend/boards/mock_data.js
@@ -277,6 +277,9 @@ export const labels = [
},
];
+export const mockIssueFullPath = 'gitlab-org/test-subgroup/gitlab-test';
+export const mockEpicFullPath = 'gitlab-org/test-subgroup';
+
export const rawIssue = {
title: 'Issue 1',
id: 'gid://gitlab/Issue/436',
@@ -302,12 +305,24 @@ export const rawIssue = {
epic: {
id: 'gid://gitlab/Epic/41',
},
+ totalTimeSpent: 0,
+ humanTimeEstimate: null,
+ humanTotalTimeSpent: null,
+ emailsDisabled: false,
+ hidden: false,
+ webUrl: `${mockIssueFullPath}/-/issue/27`,
+ relativePosition: null,
+ severity: null,
+ milestone: null,
+ weight: null,
+ blocked: false,
+ blockedByCount: 0,
+ iteration: null,
+ healthStatus: null,
type: 'ISSUE',
+ __typename: 'Issue',
};
-export const mockIssueFullPath = 'gitlab-org/test-subgroup/gitlab-test';
-export const mockEpicFullPath = 'gitlab-org/test-subgroup';
-
export const mockIssue = {
id: 'gid://gitlab/Issue/436',
iid: '27',
@@ -329,7 +344,22 @@ export const mockIssue = {
epic: {
id: 'gid://gitlab/Epic/41',
},
+ totalTimeSpent: 0,
+ humanTimeEstimate: null,
+ humanTotalTimeSpent: null,
+ emailsDisabled: false,
+ hidden: false,
+ webUrl: `${mockIssueFullPath}/-/issue/27`,
+ relativePosition: null,
+ severity: null,
+ milestone: null,
+ weight: null,
+ blocked: false,
+ blockedByCount: 0,
+ iteration: null,
+ healthStatus: null,
type: 'ISSUE',
+ __typename: 'Issue',
};
export const mockEpic = {
@@ -425,7 +455,58 @@ export const mockIssue4 = {
epic: null,
};
+export const mockIssue5 = {
+ id: 'gid://gitlab/Issue/440',
+ iid: 40,
+ title: 'Issue 5',
+ referencePath: '#40',
+ dueDate: null,
+ timeEstimate: 0,
+ confidential: false,
+ path: '/gitlab-org/gitlab-test/-/issues/40',
+ assignees,
+ labels,
+ epic: null,
+};
+
+export const mockIssue6 = {
+ id: 'gid://gitlab/Issue/441',
+ iid: 41,
+ title: 'Issue 6',
+ referencePath: '#41',
+ dueDate: null,
+ timeEstimate: 0,
+ confidential: false,
+ path: '/gitlab-org/gitlab-test/-/issues/41',
+ assignees,
+ labels,
+ epic: null,
+};
+
+export const mockIssue7 = {
+ id: 'gid://gitlab/Issue/442',
+ iid: 42,
+ title: 'Issue 6',
+ referencePath: '#42',
+ dueDate: null,
+ timeEstimate: 0,
+ confidential: false,
+ path: '/gitlab-org/gitlab-test/-/issues/42',
+ assignees,
+ labels,
+ epic: null,
+};
+
export const mockIssues = [mockIssue, mockIssue2];
+export const mockIssuesMore = [
+ mockIssue,
+ mockIssue2,
+ mockIssue3,
+ mockIssue4,
+ mockIssue5,
+ mockIssue6,
+ mockIssue7,
+];
export const BoardsMockData = {
GET: {
@@ -925,4 +1006,26 @@ export const epicBoardListQueryResponse = (totalWeight = 5) => ({
},
});
+export const updateIssueTitleResponse = {
+ data: {
+ updateIssuableTitle: {
+ issue: {
+ id: 'gid://gitlab/Issue/436',
+ title: 'Issue 1 edit',
+ },
+ },
+ },
+};
+
+export const updateEpicTitleResponse = {
+ data: {
+ updateIssuableTitle: {
+ epic: {
+ id: 'gid://gitlab/Epic/426',
+ title: 'Epic 1 edit',
+ },
+ },
+ },
+};
+
export const DEFAULT_COLOR = '#1068bf';