mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
feat(gpu): rework docker GPU for UI performance [EE-4918] (#8518)
This commit is contained in:
parent
769c8372fb
commit
fd916bc8a2
52 changed files with 692 additions and 285 deletions
16
app/react/components/InsightsBox/InsightsBox.test.tsx
Normal file
16
app/react/components/InsightsBox/InsightsBox.test.tsx
Normal file
|
@ -0,0 +1,16 @@
|
|||
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();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue