Files
website/src/App.test.tsx
T
2024-02-17 17:38:30 +01:00

14 lines
430 B
TypeScript

import { render, screen } from '@testing-library/react'
import App from './App'
describe('App component', () => {
test('renders MainPage without crashing', async () => {
render(<App />)
expect(screen.getByLabelText('loading-screen')).toBeInTheDocument()
expect(await screen.findByText('Robotics Engineer')).toBeInTheDocument()
expect(screen.queryByLabelText('loading-screen')).not.toBeInTheDocument()
})
})