import '@testing-library/jest-dom';
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import MainContent from './MainContent';
describe('MainContent', () => {
it('should render a button', () => {
render();
expect(screen.getByRole('button')).toBeInTheDocument();
});
it('should show the help area after clicking the button', async () => {
render();
const button = screen.getByRole('button');
await userEvent.click(button);
expect(screen.getByTestId('help-area')).toBeInTheDocument();
});
});