1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/test/frontend/components/trainings/training-editorial-block.test.tsx

15 lines
583 B
TypeScript

import { render, screen, waitFor } from '@testing-library/react';
import { TrainingEditorialBlock } from '../../../../app/frontend/src/javascript/components/trainings/training-editorial-block';
// Trainings Editorial Block
describe('Trainings Editorial Block', () => {
test('should render a banner', async () => {
const onError = jest.fn();
render(<TrainingEditorialBlock onError={onError} />);
await waitFor(() => screen.getByText('Test for Banner Content in Trainings'));
await waitFor(() => screen.getByText('Test for Banner Button in Trainings'));
});
});