Files
website/src/App.test.tsx
T
2026-02-09 16:17:56 +01:00

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()
})
})