diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-21 21:15:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-21 21:15:17 +0300 |
commit | 248492cc573e85aea19d7493c3a15d459be016c5 (patch) | |
tree | c25388f4af2e9a87e06121318982001b964e7573 /spec/frontend/sidebar | |
parent | 97a128c1d1bf45bcc00d5fae037f840eff1ae4e0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/sidebar')
-rw-r--r-- | spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js b/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js index 53d81e3fcaf..32041638924 100644 --- a/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js +++ b/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js @@ -133,7 +133,7 @@ describe('SidebarDropdownWidget', () => { $apollo: { mutate: mutationPromise(), queries: { - currentAttribute: { loading: false }, + issuable: { loading: false }, attributesList: { loading: false }, ...queries, }, @@ -161,7 +161,9 @@ describe('SidebarDropdownWidget', () => { beforeEach(() => { createComponent({ data: { - currentAttribute: { id: 'id', title: 'title', webUrl: 'webUrl', dueDate: '2021-09-09' }, + issuable: { + attribute: { id: 'id', title: 'title', webUrl: 'webUrl', dueDate: '2021-09-09' }, + }, }, stubs: { GlDropdown, @@ -185,7 +187,7 @@ describe('SidebarDropdownWidget', () => { it('shows a loading spinner while fetching the current attribute', () => { createComponent({ queries: { - currentAttribute: { loading: true }, + issuable: { loading: true }, }, }); @@ -199,7 +201,7 @@ describe('SidebarDropdownWidget', () => { selectedTitle: 'Some milestone title', }, queries: { - currentAttribute: { loading: false }, + issuable: { loading: false }, }, }); @@ -224,10 +226,10 @@ describe('SidebarDropdownWidget', () => { createComponent({ data: { hasCurrentAttribute: true, - currentAttribute: null, + issuable: {}, }, queries: { - currentAttribute: { loading: false }, + issuable: { loading: false }, }, }); @@ -251,7 +253,9 @@ describe('SidebarDropdownWidget', () => { { id: '123', title: '123' }, { id: 'id', title: 'title' }, ], - currentAttribute: { id: '123' }, + issuable: { + attribute: { id: '123' }, + }, }, mutationPromise: mutationResp, }); |