diff --git a/packages/material-ui/src/TablePagination/TablePagination.test.js b/packages/material-ui/src/TablePagination/TablePagination.test.js index aa847b370c962b..3116c5ec04fcec 100644 --- a/packages/material-ui/src/TablePagination/TablePagination.test.js +++ b/packages/material-ui/src/TablePagination/TablePagination.test.js @@ -4,6 +4,7 @@ import PropTypes from 'prop-types'; import { createShallow, createMount, + describeConformance, findOutermostIntrinsic, getClasses, } from '@material-ui/core/test-utils'; @@ -22,6 +23,17 @@ describe('', () => { let shallow; let mount; + function mountInTable(node) { + const wrapper = mount( + + + {node} + +
, + ); + return wrapper.find('tr').childAt(0); + } + before(() => { classes = getClasses( {}} page={0} rowsPerPage={1} />, @@ -34,6 +46,15 @@ describe('', () => { mount.cleanUp(); }); + describeConformance( + {}} page={0} rowsPerPage={1} />, + () => ({ + mount: mountInTable, + only: ['refForwarding'], + refInstanceof: window.HTMLTableCellElement, + }), + ); + it('should render a TableCell', () => { const wrapper = mount(