test: align deployment checks with accepted diagnostics and public presentation
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-22 08:59:38 +02:00
parent 7fc4f2569f
commit eada56aa18
14 changed files with 158 additions and 35 deletions
@@ -165,7 +165,11 @@ void test('real table component presents one issue panel while retaining every t
const html = renderToStaticMarkup(
React.createElement(module.exports.InvestmentReportTables, { tables }),
);
assert.equal(html.split(message).length - 1, 1);
assert.equal(
html.replace(/ data-correction-message="[^"]*"/g, '').split(message)
.length - 1,
1,
);
assert.equal(
(html.match(/aria-label="Dados financeiros a corrigir"/g) ?? []).length,
1,
@@ -199,7 +203,11 @@ void test('print and Word present the same capital correction only once, without
report.sections.find((s) => s.id === 'finance').tables,
)[0].message;
const html = await createProjectDossierPrintHtml(report, []);
assert.equal(html.split(message).length - 1, 1);
assert.equal(
html.replace(/ data-correction-message="[^"]*"/g, '').split(message)
.length - 1,
1,
);
const blob = await generateProjectDossierDocx(report, []),
zip = await JSZip.loadAsync(
blob instanceof Blob ? await blob.arrayBuffer() : blob,