/** * Test page for the real « Créer une copie de travail » action in a real * browser (e2e/ui/working-copy.spec.ts). Served by the Vite dev server only * (`/e2e/harness/working-copy.html`); the build has a single entry, index.html, * so this page never ships. The action is the application's own component, * rendered with the slot free and with the slot taken (the two states the * historical sheet page shows); no request is made unless the form is * submitted, which the spec never does. `?lang=en` picks the language. */ import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import { MemoryRouter } from 'react-router-dom' import '@/styles/index.css' import WorkingCopyAction from '@/components/admin/WorkingCopyAction' import { useLocaleStore } from '@/state/localeStore' import type { Locale } from '@/i18n/types' const lang: Locale = new URLSearchParams(location.search).get('lang') === 'en' ? 'en' : 'fr' useLocaleStore.setState({ locale: lang }) document.documentElement.lang = lang const SLUG = 'faunosteo-cheval' const SOURCE_VERSION_ID = '00000000-0000-4000-8000-000000000001' function Harness() { return (

Working copy harness

Slot free

Slot taken

) } createRoot(document.getElementById('root') as HTMLElement).render( , )