test(app): couvrir la page PWA hors connexion
This commit is contained in:
1 parent
fc859de030
commit
6981da23f1
1 file changed
+13
@@ -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', '/')
|
||||||
|
})
|
||||||
|
})
|
||||||
Reference in new issue
Block a user