Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
core
/
components
/
AppChrome
/
News
/
File Content:
NewsContainer.test.tsx
import { render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import React from 'react'; import { NewsContainer } from './NewsContainer'; const setup = () => { const { container } = render(<NewsContainer />); return { container }; }; describe('News', () => { it('should render the drawer when the drawer button is clicked', async () => { setup(); await userEvent.click(screen.getByRole('button')); expect(screen.getByText('Latest from the blog')).toBeInTheDocument(); }); });
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
fixtures
---
0755
NewsContainer.test.tsx
549 bytes
0644
NewsContainer.tsx
2506 bytes
0644
NewsWrapper.tsx
2134 bytes
0644
N4ST4R_ID | Naxtarrr