fix: concluir recuperacao de exportacoes e consolidar candidata QA
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-21 08:43:12 +02:00
parent c22003a3da
commit 13f68f1bd8
8 changed files with 639 additions and 110 deletions
@@ -295,6 +295,15 @@ void test('print/PDF HTML escapes user content and explains omitted annexes', as
assert.match(pdf, /<script>/);
assert.match(pdf, /não foram seleccionados|secção de anexos foi omitida/);
assert.match(pdf, /@page\{size:A4/);
assert.match(pdf, /@bottom-left\{content:/);
assert.match(pdf, /@bottom-right\{content:counter\(page\)/);
assert.doesNotMatch(pdf, /position:fixed|bottom:-14mm/);
const escapedVersion = await createProjectDossierPrintHtml(
{ ...report, version: 'Revisão "QA" </style><script>alert(2)</script>' },
[],
false,
);
assert.doesNotMatch(escapedVersion, /<script>alert\(2\)<\/script>/);
});
void test('attachment limits block oversized or excessive selections', () => {