Skip to content

[Table] Snapshot test issue with TablePagination #21293

Closed
@is1ash

Description

@is1ash

Recent changes to compnent TablePagination break test.

https://github.com/mui-org/material-ui/blob/3eb02f5498857bd01bb7924eed9b946f33e39052/packages/material-ui/src/TablePagination/TablePagination.js#L114-L116

The generated id is always new and snapshot doesn't/cann't match.

<p 
  class="MuiTypography-root MuiTablePagination-caption MuiTypography-body2 MuiTypography-colorInherit"
-  id="mui-7460"
+  id="mui-62542"
>
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Environment 🌎

@material-ui/core: 4.10.1
jest: 24.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: tableThis is the name of the generic UI component, not the React module!testwaiting for 👍Waiting for upvotes. Open for community feedback and needs more interest to be worked on.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions