fix(merge-pdf): keep worker errors out of the alert, add missing fr key

This commit is contained in:
Adrien Boullé committed 2026-10-19 12:30:29 +02:00
1 parent ab8f4c20a8
commit 448035b77b
3 files changed
+11 -4

No files matched your search

+7
View File
@@ -39,6 +39,13 @@ describe('merge PDF notifications are localized', () => {
expect(literalCalls).toHaveLength(0);
});
it('never surfaces the raw worker message to the user', () => {
const rawWorkerMessageInAlert = [
...source.matchAll(/\bshowAlert\([^;]*?\be\.data\.message/gs),
];
expect(rawWorkerMessageInAlert).toHaveLength(0);
});
it('references at least the alert and loader keys added for the merge tool', () => {
expect(usedKeys).toContain('tools:mergePdf.alert.mergeSuccess');
expect(usedKeys).toContain('tools:mergePdf.loader.merging');