Replace lookup with patternfly's input group component and 'fix' the height

This commit is contained in:
Marliana Lara
2019-04-05 15:39:14 -04:00
parent 2062124a92
commit 212d3d517d
3 changed files with 25 additions and 27 deletions

View File

@@ -62,7 +62,7 @@ describe('<Lookup />', () => {
).find('Lookup');
expect(spy).not.toHaveBeenCalled();
expect(wrapper.state('lookupSelectedItems')).toEqual(mockSelected);
const searchItem = wrapper.find('.pf-c-input-group__text#search');
const searchItem = wrapper.find('button[aria-label="Search"]');
searchItem.first().simulate('click');
expect(spy).toHaveBeenCalled();
expect(wrapper.state('lookupSelectedItems')).toEqual([{
@@ -89,7 +89,7 @@ describe('<Lookup />', () => {
</I18nProvider>
);
setImmediate(() => {
const searchItem = wrapper.find('.pf-c-input-group__text#search');
const searchItem = wrapper.find('button[aria-label="Search"]');
searchItem.first().simulate('click');
wrapper.find('input[type="checkbox"]').simulate('change');
expect(spy).toHaveBeenCalled();