Skip to content

Commit

Permalink
[TreeView] Fix broken CI
Browse files Browse the repository at this point in the history
Apply #20545
  • Loading branch information
oliviertassinari committed Apr 27, 2020
1 parent 3e5fd3c commit 8341ee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/material-ui-lab/src/TreeItem/TreeItem.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -756,13 +756,13 @@ describe('<TreeItem />', () => {
const { getByText, getByTestId } = render(<TestComponent />);
fireEvent.click(getByText('Hide'));
const navTreeItem = getByTestId('navTo');
expect(navTreeItem).not.to.have.focus;
expect(navTreeItem).not.toHaveFocus();

expect(() => {
fireEvent.keyDown(getByTestId('keyDown'), { key: 'a' });
}).not.to.throw();

expect(navTreeItem).to.have.focus;
expect(navTreeItem).toHaveFocus();
expect(navTreeItem).to.have.attribute('tabindex', '0');
});
});
Expand Down

0 comments on commit 8341ee9

Please sign in to comment.