Merge pull request #15484 from backstage/rugvip/mui5

Add support for Material-UI v5
This commit is contained in:
Patrik Oldsberg
2023-05-23 17:13:01 +02:00
committed by GitHub
36 changed files with 1932 additions and 404 deletions
@@ -24,7 +24,7 @@ describe('<EntityKindIcon />', () => {
<EntityKindIcon kind="Component" />,
);
expect(baseElement.querySelector('.MuiSvgIcon-root')).toBeInTheDocument();
expect(baseElement.querySelector('svg')).toBeInTheDocument();
});
it('renders without exploding for unknown kind', async () => {
@@ -32,6 +32,6 @@ describe('<EntityKindIcon />', () => {
<EntityKindIcon kind="unknown" />,
);
expect(baseElement.querySelector('.MuiSvgIcon-root')).toBeInTheDocument();
expect(baseElement.querySelector('svg')).toBeInTheDocument();
});
});
@@ -278,7 +278,7 @@ export class TechDocsAddonTester {
render(this.build());
});
const shadowHost = screen.getByTestId('techdocs-native-shadowroot');
const shadowHost = await screen.findByTestId('techdocs-native-shadowroot');
return {
...screen,