Added Custom Docker Action which prints fibonacci
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import '@testing-library/jest-dom';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
|
||||
import MainContent from './MainContent';
|
||||
|
||||
// My tests!
|
||||
// Add yet another comment
|
||||
|
||||
describe('MainContent', () => {
|
||||
it('should render a button', () => {
|
||||
render(<MainContent />);
|
||||
|
||||
expect(screen.getByRole('button')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should show the help area after clicking the button', async () => {
|
||||
render(<MainContent />);
|
||||
|
||||
const button = screen.getByRole('button');
|
||||
await userEvent.click(button);
|
||||
expect(screen.getByTestId('help-area')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user