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>2023-05-08 18:18:11 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-08 18:18:11 +0300
commitdcc56fe601580b5d8f6c3da32550c6523f2baff3 (patch)
treef68c28bf7c8715de7242464b344620ae5c394036 /spec/frontend/super_sidebar
parent571b02efc9442e73538c3438eb593a83d7807779 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/super_sidebar')
-rw-r--r--spec/frontend/super_sidebar/components/user_bar_spec.js2
-rw-r--r--spec/frontend/super_sidebar/mock_data.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/super_sidebar/components/user_bar_spec.js b/spec/frontend/super_sidebar/components/user_bar_spec.js
index 25f699bddb5..6878e724c65 100644
--- a/spec/frontend/super_sidebar/components/user_bar_spec.js
+++ b/spec/frontend/super_sidebar/components/user_bar_spec.js
@@ -97,7 +97,7 @@ describe('UserBar component', () => {
describe('Todos counter', () => {
it('renders it', () => {
const todosCounter = findTodosCounter();
- expect(todosCounter.props('href')).toBe('/dashboard/todos');
+ expect(todosCounter.props('href')).toBe(sidebarData.todos_dashboard_path);
expect(todosCounter.props('label')).toBe(__('To-Do list'));
expect(todosCounter.attributes('data-track-action')).toBe('click_link');
expect(todosCounter.attributes('data-track-label')).toBe('todos_link');
diff --git a/spec/frontend/super_sidebar/mock_data.js b/spec/frontend/super_sidebar/mock_data.js
index d42bc24098d..a3a74f7aac8 100644
--- a/spec/frontend/super_sidebar/mock_data.js
+++ b/spec/frontend/super_sidebar/mock_data.js
@@ -89,6 +89,7 @@ export const sidebarData = {
review_requested_merge_requests: 1,
},
issues_dashboard_path: 'path/to/issues',
+ todos_dashboard_path: 'path/to/todos',
create_new_menu_groups: createNewMenuGroups,
merge_request_menu: mergeRequestMenuGroup,
projects_path: 'path/to/projects',