Skip to content

Commit

Permalink
add test case for the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 27, 2021
1 parent 2410ae6 commit e130b3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/material-ui/src/TableCell/TableCell.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,9 @@ describe('<TableCell />', () => {
const { container } = renderInTable(<TableCell align="center" />);
expect(container.querySelector('td')).to.have.class(classes.alignCenter);
});

it('should allow the default role (rowheader) to trigger', () => {
const { container } = renderInTable(<TableCell component="th" scope="row" />);
expect(container.querySelector('th')).not.to.have.attribute('role');
});
});

0 comments on commit e130b3b

Please sign in to comment.