Commit a0596df3 authored by Tom Quirk's avatar Tom Quirk

Fix missing "Clear" button on namespace search

Adds `value` prop to component, which
ensures clear button appears.

Changelog: fixed
parent 95af2964
......@@ -89,6 +89,7 @@ export default {
debounce="500"
:placeholder="__('Search by name')"
:is-loading="isLoadingMore"
:value="searchTerm"
@input="onGroupSearch"
/>
......
......@@ -160,9 +160,13 @@ describe('GroupsList', () => {
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);
});
it('sets value prop of the search box to the search term', () => {
expect(findSearchBox().props('value')).toBe(mockSearchTeam);
});
});
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