fix(editor): category creation dialog title key

This commit is contained in:
bchanot committed 2026-11-13 23:45:59 +01:00
1 parent baae13ce3a
commit 021685f6b3
4 files changed
+26

No files matched your search

@@ -543,3 +543,16 @@ describe('final review: leaving the editor with a dirty dialog (criterion 17)',
expect(sessionStorage.getItem(flagKey)).toBeNull()
})
})
describe('final review: the category creation title', () => {
it('reads « Nouvelle catégorie », never a raw key', async () => {
const user = await mount()
await user.click(
screen.getByRole('button', { name: 'Ajouter une catégorie' }),
)
await waitFor(() => expect(findingDialog()).not.toBeNull())
const title = within(findingDialog()!).getByRole('heading', { level: 2 })
expect(title).toHaveTextContent(/^Nouvelle catégorie$/)
expect(title.textContent).not.toContain('editor.')
})
})