fix(explore): tools card header

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2023-06-09 14:07:09 +02:00
parent 7374b3fd68
commit 25eb82eec1
2 changed files with 7 additions and 3 deletions
@@ -36,8 +36,12 @@ describe('<ToolCard />', () => {
});
it('renders props correctly', () => {
const { getByText } = render(wrapInTestApp(<ToolCard {...minProps} />));
expect(getByText(minProps.card.title)).toBeInTheDocument();
const { getByRole, getByText } = render(
wrapInTestApp(<ToolCard {...minProps} />),
);
expect(
getByRole('heading', { name: minProps.card.title }),
).toBeInTheDocument();
expect(getByText(minProps.card.description)).toBeInTheDocument();
});
@@ -74,7 +74,7 @@ export const ToolCard = ({ card, objectFit }: Props) => {
})}
/>
<CardContent>
<Typography paragraph variant="h5">
<Typography variant="h5">
{title}{' '}
{lifecycle && lifecycle.toLocaleLowerCase('en-US') !== 'ga' && (
<Chip