test(app): couvrir la page PWA hors connexion

This commit is contained in:
devcodetools committed 2026-09-21 17:42:19 +02:00
1 parent fc859de030
commit 6981da23f1
1 file changed
+13
+13
View File
@@ -0,0 +1,13 @@
import { render, screen } from '@testing-library/react'
import { describe, expect, it } from 'vitest'
import OfflinePage from './page'
describe('OfflinePage', () => {
it('affiche le message hors connexion et un lien vers l accueil', () => {
render(<OfflinePage />)
expect(
screen.getByRole('heading', { level: 1, name: 'Vous êtes hors connexion' }),
).toBeInTheDocument()
expect(screen.getByRole('link', { name: 'Accueil' })).toHaveAttribute('href', '/')
})
})