test: align deployment checks with accepted diagnostics and public presentation
tests / ci (push) Waiting to run
tests / ci (push) Waiting to run
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user