remove wrappers

Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
This commit is contained in:
nikolar
2024-11-20 09:51:38 -08:00
parent e741741c93
commit 3e83f24150
2 changed files with 14 additions and 19 deletions
@@ -17,29 +17,24 @@
import { Content } from './Content';
import React from 'react';
import userEvent from '@testing-library/user-event';
import { renderInTestApp, TestApiProvider } from '@backstage/test-utils';
import { renderInTestApp } from '@backstage/test-utils';
import ContentImage from './static/backstageSystemModel.png';
describe('<QuickStartCard />', () => {
const Wrapper = ({ children }: { children?: React.ReactNode }) => (
<>{children}</>
);
const renderContent = async () => {
return await renderInTestApp(
<Wrapper>
<Content
image={
<img
src={ContentImage}
data-testid="quick-start-image"
alt="quick start"
width="100%"
height="100%"
/>
}
docsLinkTitle="Testing docs link"
/>
</Wrapper>,
<Content
image={
<img
src={ContentImage}
data-testid="quick-start-image"
alt="quick start"
width="100%"
height="100%"
/>
}
docsLinkTitle="Testing docs link"
/>,
);
};
@@ -16,7 +16,7 @@
import { QuickStartCard } from '../../plugin';
import React, { ComponentType, PropsWithChildren } from 'react';
import { wrapInTestApp, TestApiProvider } from '@backstage/test-utils';
import { wrapInTestApp } from '@backstage/test-utils';
import Grid from '@material-ui/core/Grid';
import ContentImage from './static/backstageSystemModel.png';