fix(editor): the delete hint names « Modifier » before « Retirer »

This commit is contained in:
bchanot committed 2026-11-14 18:51:38 +01:00
1 parent 28e298ac56
commit 08fab77d0e
4 files changed
+23 -6

No files matched your search

+16
View File
@@ -16,3 +16,19 @@ describe('i18n dicts', () => {
}
})
})
describe('the delete hint of a cited reference (final review rev 4, item 2)', () => {
it('names the buttons of each step: « Aller à », « Modifier », « Retirer »', () => {
for (const dict of [fr, en]) {
const hint = dict['editor.references.delete_hint']
const labels = [
dict['editor.references.go_to'],
dict['editor.findings.edit'],
dict['editor.action.remove'],
]
const at = labels.map((label) => hint.indexOf(label))
expect(at.every((i) => i >= 0)).toBe(true)
expect([...at].sort((a, b) => a - b)).toEqual(at)
}
})
})