You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/react/components/InsightsBox/InsightsBox.test.tsx

17 lines
507 B

import { render } from '@testing-library/react';
import { InsightsBox } from './InsightsBox';
test('should display a InsightsBox with a header and content', async () => {
const header = 'test header';
const content = 'test content';
const { findByText } = render(
<InsightsBox header={header} content={content} />
);
const headerFound = await findByText(header);
expect(headerFound).toBeTruthy();
const contentFound = await findByText(content);
expect(contentFound).toBeTruthy();
});