Skip to content

Commit

Permalink
Extend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jughosta committed Nov 16, 2023
1 parent 70ad0aa commit cc321d6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/datagrid/body/header/data_grid_header_cell.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,19 @@ describe('EuiDataGridHeaderCell', () => {
fireEvent.click(toggle);
waitForEuiPopoverOpen();
expect(mockFocusContext.setFocusedCell).toHaveBeenCalledWith([0, -1]);
expect(
container.querySelector(
'.euiDataGridHeaderCell__button--withOpenPopover'
)
).toBeInTheDocument();

fireEvent.click(toggle);
waitForEuiPopoverClose();
expect(
container.querySelector(
'.euiDataGridHeaderCell__button--withOpenPopover'
)
).not.toBeInTheDocument();
});

describe('keyboard arrow navigation', () => {
Expand Down

0 comments on commit cc321d6

Please sign in to comment.