fix(editor): verifier gaps: ratified wordings, copy messages, real SVG journeys
This commit is contained in:
1 parent
9ba6d2b66c
commit
d10ba5d5dd
18 files changed
+227
-97
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { failureMessage } from '@/admin/labels'
|
||||
import { en } from '@/i18n/en'
|
||||
import { fr } from '@/i18n/fr'
|
||||
|
||||
describe('failure messages of the submission', () => {
|
||||
it.each(['round.open', 'view.asset.unknown'] as const)(
|
||||
'%s has its own wording, never the generic unavailable one',
|
||||
(kind) => {
|
||||
for (const dict of [fr, en]) {
|
||||
const t = (key: string) => dict[key]
|
||||
const message = failureMessage(t, kind)
|
||||
expect(message).toBe(dict[`admin.failure.${kind}`])
|
||||
expect(message).not.toBe(dict['admin.failure.unavailable'])
|
||||
}
|
||||
},
|
||||
)
|
||||
})
|
||||
Reference in new issue
Block a user