We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72a0d64 commit 1fa9eb1Copy full SHA for 1fa9eb1
packages/mui-material/src/TablePagination/TablePagination.test.js
@@ -706,4 +706,28 @@ describe('<TablePagination />', () => {
706
707
expect(combobox.parentElement).not.to.have.attribute('variant');
708
});
709
+
710
+ it('should not raise a warning for hiddenLabel when the variant is filled', () => {
711
+ expect(() => {
712
+ PropTypes.checkPropTypes(
713
+ TablePagination.propTypes,
714
+ {
715
+ // Other required props
716
+ count: 10,
717
+ page: 0,
718
+ rowsPerPage: 10,
719
+ onPageChange: () => {},
720
+ // Additional props for the test
721
+ slotProps: {
722
+ select: {
723
+ variant: 'filled',
724
+ hiddenLabel: true,
725
+ },
726
727
728
+ 'prop',
729
+ 'MockedTablePagination',
730
+ );
731
+ }).not.toErrorDev();
732
+ });
733
0 commit comments