fix: concluir recuperacao de exportacoes e consolidar candidata QA
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user