Commit 7ef56140 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch...

Merge branch '331028-follow-up-from-jira-connect-show-all-namespaces-when-search-term-length-3' into 'master'

Jira Connect: ensure that the Clear button is visible in the Namespace search

See merge request gitlab-org/gitlab!64378
parents 2af425ac a0596df3
...@@ -89,6 +89,7 @@ export default { ...@@ -89,6 +89,7 @@ export default {
debounce="500" debounce="500"
:placeholder="__('Search by name')" :placeholder="__('Search by name')"
:is-loading="isLoadingMore" :is-loading="isLoadingMore"
:value="searchTerm"
@input="onGroupSearch" @input="onGroupSearch"
/> />
......
...@@ -160,9 +160,13 @@ describe('GroupsList', () => { ...@@ -160,9 +160,13 @@ describe('GroupsList', () => {
expect(findGroupsList().classes()).toContain('gl-opacity-5'); expect(findGroupsList().classes()).toContain('gl-opacity-5');
}); });
it('sets loading prop of ths search box', () => { it('sets loading prop of the search box', () => {
expect(findSearchBox().props('isLoading')).toBe(true); expect(findSearchBox().props('isLoading')).toBe(true);
}); });
it('sets value prop of the search box to the search term', () => {
expect(findSearchBox().props('value')).toBe(mockSearchTeam);
});
}); });
describe('when group search finishes loading', () => { describe('when group search finishes loading', () => {
......
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