Commit d4727925 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch '7445-fix-epic-toggle-subscription' into 'master'

Fix Epic subscription toggle behaviour

Closes #7445

See merge request gitlab-org/gitlab-ee!7723
parents 617c78e2 69b317e9
......@@ -167,7 +167,7 @@ export default {
savingTodoAction: false,
service: new SidebarService({
endpoint: this.endpoint,
subscriptionEndpoint: this.subscriptionEndpoint,
subscriptionEndpoint: this.toggleSubscriptionPath,
todoPath: this.todoPath,
}),
epicContext: {
......
---
title: Fix Epic subscription toggle behaviour
merge_request: 7723
author:
type: fixed
......@@ -76,6 +76,12 @@ describe('epicSidebar', () => {
Cookies.set('collapsed_gutter', originalCookieState);
});
it('should initialize service with correct endpoints', () => {
expect(vm.service.endpoint.length > 0).toBe(true);
expect(vm.service.subscriptionEndpoint.length > 0).toBe(true);
expect(vm.service.todoPath.length > 0).toBe(true);
});
it('should render right-sidebar-expanded class when not collapsed', () => {
expect(vm.$el.classList.contains('right-sidebar-expanded')).toEqual(true);
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment