+
+
+ ← Retour au détail
+
+
{card.question}
+
+
+
+ )
+}
diff --git a/src/components/card-form.test.tsx b/src/components/card-form.test.tsx
index e846901..6631281 100644
--- a/src/components/card-form.test.tsx
+++ b/src/components/card-form.test.tsx
@@ -36,3 +36,25 @@ it('crée une carte puis navigue vers son détail (F-05)', async () => {
})
await screen.findByText('Enregistrement…')
})
+
+it('pré-remplit le formulaire et enregistre une modification (F-06 édition)', async () => {
+ vi.mocked(cardsApi.update).mockResolvedValue({ id: 'c1' } as never)
+ render(
+