diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-25 09:12:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-25 09:12:46 +0300 |
commit | 8d2c267efcdb6adbf69ce60d84ad7a73b18a5eb6 (patch) | |
tree | 73a25e3d9c5441e4ce70ae82f6d0697a1872d7d6 /spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js | |
parent | 2a6724602aebe899c405c84d1b309558c25b18f7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js')
-rw-r--r-- | spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js b/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js index ca6e5ac5e7f..c9c121d12a6 100644 --- a/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js +++ b/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js @@ -369,16 +369,18 @@ describe('SidebarDropdownWidget', () => { describe('when a user is searching', () => { describe('when search result is not found', () => { - it('renders "No milestone found"', async () => { - createComponent(); + describe('when milestone', () => { + it('renders "No milestone found"', async () => { + createComponent(); - await toggleDropdown(); + await toggleDropdown(); - findSearchBox().vm.$emit('input', 'non existing milestones'); + findSearchBox().vm.$emit('input', 'non existing milestones'); - await wrapper.vm.$nextTick(); + await wrapper.vm.$nextTick(); - expect(findDropdownText().text()).toBe('No milestone found'); + expect(findDropdownText().text()).toBe('No milestone found'); + }); }); }); }); |