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