Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EuiDataGrid] Add remaining unit tests for focus logic (elastic#5698)
* Add unit tests for useHeaderFocusWorkaround * Add unit tests for preventTabbing + remove unnecessary role=gridcell check - after inspecting our DOM, that role attr is set on the topmost cell wrapper but `data-datagrid-cellcontent` is set on a div below that, so there's no way the parent cell should be inside the cell content + swap dataset check for hasAttribute - for some reason Jest/JSDOM was failing to register dataset, but hasAttribute works and should be equivalent * Add unit tests for createKeyDownHandler * Add unit tests for notifyCellOfFocusState * Add unit tests for onFocus + change unmount_enzyme helper to run after each file instead of each test, to allow onFocusUpdate tests to retain shared state between each it() block * Fix failing tests caused by unmount_enzyme change * Fix comment typo
- Loading branch information