Fix EntityKindIcon test regarding prefixed MUI classes

- Simple fix not changing what is tested, but adjusting the way the element is queried

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2023-04-27 14:50:43 +02:00
parent d53afd8a80
commit 7cfe41766f
@@ -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();
});
});