diff options
Diffstat (limited to 'spec/frontend/issues/list/mock_data.js')
-rw-r--r-- | spec/frontend/issues/list/mock_data.js | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/spec/frontend/issues/list/mock_data.js b/spec/frontend/issues/list/mock_data.js index 1e8a81116f3..bd006a6b3ce 100644 --- a/spec/frontend/issues/list/mock_data.js +++ b/spec/frontend/issues/list/mock_data.js @@ -101,6 +101,26 @@ export const getIssuesQueryResponse = { }, }; +export const getIssuesQueryEmptyResponse = { + data: { + project: { + id: '1', + __typename: 'Project', + issues: { + __persist: true, + pageInfo: { + __typename: 'PageInfo', + hasNextPage: true, + hasPreviousPage: false, + startCursor: 'startcursor', + endCursor: 'endcursor', + }, + nodes: [], + }, + }, + }, +}; + export const getIssuesCountsQueryResponse = { data: { project: { @@ -196,6 +216,7 @@ export const locationSearchWithSpecialValues = [ ].join('&'); export const filteredTokens = [ + { type: FILTERED_SEARCH_TERM, value: { data: 'find issues', operator: 'undefined' } }, { type: TOKEN_TYPE_AUTHOR, value: { data: 'homer', operator: OPERATOR_IS } }, { type: TOKEN_TYPE_AUTHOR, value: { data: 'marge', operator: OPERATOR_NOT } }, { type: TOKEN_TYPE_AUTHOR, value: { data: 'burns', operator: OPERATOR_OR } }, @@ -240,8 +261,6 @@ export const filteredTokens = [ { type: TOKEN_TYPE_ORGANIZATION, value: { data: '456', operator: OPERATOR_IS } }, { type: TOKEN_TYPE_HEALTH, value: { data: 'atRisk', operator: OPERATOR_IS } }, { type: TOKEN_TYPE_HEALTH, value: { data: 'onTrack', operator: OPERATOR_NOT } }, - { type: FILTERED_SEARCH_TERM, value: { data: 'find' } }, - { type: FILTERED_SEARCH_TERM, value: { data: 'issues' } }, ]; export const filteredTokensWithSpecialValues = [ @@ -258,6 +277,7 @@ export const filteredTokensWithSpecialValues = [ ]; export const apiParams = { + search: 'find issues', authorUsername: 'homer', assigneeUsernames: ['bart', 'lisa', '5'], milestoneTitle: ['season 3', 'season 4'], @@ -306,6 +326,7 @@ export const apiParamsWithSpecialValues = { }; export const urlParams = { + search: 'find issues', author_username: 'homer', 'not[author_username]': 'marge', 'or[author_username]': ['burns', 'smithers'], |