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

15 lines
583 B
TypeScript
Raw Normal View History

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'));
});
});