Skip to content

Commit 1fa9eb1

Browse files
added test
1 parent 72a0d64 commit 1fa9eb1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

packages/mui-material/src/TablePagination/TablePagination.test.js

+24
Original file line numberDiff line numberDiff line change
@@ -706,4 +706,28 @@ describe('<TablePagination />', () => {
706706

707707
expect(combobox.parentElement).not.to.have.attribute('variant');
708708
});
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+
});
709733
});

0 commit comments

Comments
 (0)