Skip to content

Commit

Permalink
fix: pre-push error
Browse files Browse the repository at this point in the history
added mouse event to avoid warnings in test execution
  • Loading branch information
Happyrajsinh committed Feb 1, 2024
1 parent 012ff2f commit 866940c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react/src/components/Table/StatefulTable.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ describe('stateful table with real reducer', () => {
fireEvent.mouseMove(breadcrumbNodes[0], { clientX: 100, clientY: 100 });
fireEvent.mouseEnter(breadcrumbNodes[0]);
fireEvent.mouseLeave(breadcrumbNodes[0]);
// Added to avoid warning of wrraping in act() in case of state change due to mouse events
fireEvent.keyDown(container, { key: 'a' }); // this is ignored, but needed for code coverage
fireEvent.keyDown(container, { key: 'Escape' });

const ellipsisNode = container.querySelectorAll(`.${prefix}--overflow-menu`);

Expand Down

0 comments on commit 866940c

Please sign in to comment.