import { describe, it, expect } from 'vitest' import { mount, shallowMount } from '@vue/test-utils' import ErrorPage from '../ErrorPage.vue' describe('ErrorPage', () => { it('renders correctly', () => { const wrapper = shallowMount(ErrorPage) expect(wrapper.html()).toMatchSnapshot() }) it('renders #action slot content', () => { const wrapper = mount(ErrorPage, { slots: { action: '', }, }) expect(wrapper.html()).toContain('Retour à l\'accueil') }) it('renders #additional-content slot content', () => { const wrapper = mount(ErrorPage, { slots: { 'additional-content': '

Contenu additionnel

', }, }) expect(wrapper.html()).toContain('Contenu additionnel') }) })