14 lines
447 B
TypeScript
14 lines
447 B
TypeScript
import { render, screen } from '@testing-library/react'
|
|
|
|
import App from './App.js'
|
|
|
|
describe('App component', () => {
|
|
test('renders MainPage without crashing', async () => {
|
|
render(<App />)
|
|
|
|
expect(screen.getByLabelText('loading-screen')).toBeInTheDocument()
|
|
expect(await screen.findByText("Compagnia d'Arme del Santo Luca")).toBeInTheDocument()
|
|
expect(screen.queryByLabelText('loading-screen')).not.toBeInTheDocument()
|
|
})
|
|
})
|