Skip to content

Commit

Permalink
fix Lens unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Feb 1, 2021
1 parent 687bd60 commit e8efcc8
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ describe('DatatableComponent', () => {
/>
);

wrapper.find('[data-test-subj="dataGridRowCell"]').first().simulate('focus');

wrapper.find('[data-test-subj="lensDatatableFilterOut"]').first().simulate('click');

expect(onDispatchEvent).toHaveBeenCalledWith({
Expand Down Expand Up @@ -198,7 +200,9 @@ describe('DatatableComponent', () => {
/>
);

wrapper.find('[data-test-subj="lensDatatableFilterFor"]').at(3).simulate('click');
wrapper.find('[data-test-subj="dataGridRowCell"]').at(1).simulate('focus');

wrapper.find('[data-test-subj="lensDatatableFilterFor"]').first().simulate('click');

expect(onDispatchEvent).toHaveBeenCalledWith({
name: 'filter',
Expand Down Expand Up @@ -276,7 +280,9 @@ describe('DatatableComponent', () => {
/>
);

wrapper.find('[data-test-subj="lensDatatableFilterFor"]').at(1).simulate('click');
wrapper.find('[data-test-subj="dataGridRowCell"]').at(0).simulate('focus');

wrapper.find('[data-test-subj="lensDatatableFilterFor"]').first().simulate('click');

expect(onDispatchEvent).toHaveBeenCalledWith({
name: 'filter',
Expand Down

0 comments on commit e8efcc8

Please sign in to comment.