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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-12-08 09:13:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-12-08 09:13:27 +0300
commit99bcbec56c2f7f8cc3028974ad1d6edcb16a9281 (patch)
tree352560a31119dc737993cce71ed8f5a8f24c698f /spec/frontend/boards/components
parent849d5912a8742c628df825043807ad891431cca1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/boards/components')
-rw-r--r--spec/frontend/boards/components/board_filtered_search_spec.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/frontend/boards/components/board_filtered_search_spec.js b/spec/frontend/boards/components/board_filtered_search_spec.js
index 50f3a7e96d9..ea551e94f2f 100644
--- a/spec/frontend/boards/components/board_filtered_search_spec.js
+++ b/spec/frontend/boards/components/board_filtered_search_spec.js
@@ -18,7 +18,7 @@ describe('BoardFilteredSearch', () => {
{
icon: 'labels',
title: __('Label'),
- type: 'label_name',
+ type: 'label',
operators: [
{ value: '=', description: 'is' },
{ value: '!=', description: 'is not' },
@@ -31,7 +31,7 @@ describe('BoardFilteredSearch', () => {
{
icon: 'pencil',
title: __('Author'),
- type: 'author_username',
+ type: 'author',
operators: [
{ value: '=', description: 'is' },
{ value: '!=', description: 'is not' },
@@ -97,7 +97,7 @@ describe('BoardFilteredSearch', () => {
createComponent({ props: { eeFilters: { labelName: ['label'] } } });
expect(findFilteredSearch().props('initialFilterValue')).toEqual([
- { type: 'label_name', value: { data: 'label', operator: '=' } },
+ { type: 'label', value: { data: 'label', operator: '=' } },
]);
});
});
@@ -117,11 +117,11 @@ describe('BoardFilteredSearch', () => {
it('sets the url params to the correct results', async () => {
const mockFilters = [
- { type: 'author_username', value: { data: 'root', operator: '=' } },
- { type: 'label_name', value: { data: 'label', operator: '=' } },
- { type: 'label_name', value: { data: 'label2', operator: '=' } },
+ { type: 'author', value: { data: 'root', operator: '=' } },
+ { type: 'label', value: { data: 'label', operator: '=' } },
+ { type: 'label', value: { data: 'label2', operator: '=' } },
{ type: 'milestone', value: { data: 'New Milestone', operator: '=' } },
- { type: 'types', value: { data: 'INCIDENT', operator: '=' } },
+ { type: 'type', value: { data: 'INCIDENT', operator: '=' } },
{ type: 'weight', value: { data: '2', operator: '=' } },
{ type: 'iteration', value: { data: '3341', operator: '=' } },
{ type: 'release', value: { data: 'v1.0.0', operator: '=' } },
@@ -147,8 +147,8 @@ describe('BoardFilteredSearch', () => {
it('passes the correct props to FilterSearchBar', () => {
expect(findFilteredSearch().props('initialFilterValue')).toEqual([
- { type: 'author_username', value: { data: 'root', operator: '=' } },
- { type: 'label_name', value: { data: 'label', operator: '=' } },
+ { type: 'author', value: { data: 'root', operator: '=' } },
+ { type: 'label', value: { data: 'label', operator: '=' } },
]);
});
});