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
+17 -3
View File
@@ -88,18 +88,32 @@ test('D1: one startup diagnostic across real local and report components; standa
),
);
assert.ok(error.includes('caixa requerida'));
assert.equal(render().split(error).length - 1, 1);
assert.equal(
render()
.replace(/ data-correction-message="[^"]*"/g, '')
.replace(/ data-correction-message="[^"]*"/g, '')
.split(error).length - 1,
1,
);
assert.equal(
renderToStaticMarkup(
React.createElement(StartupAssetRequirements, {
plan,
onChange() {},
}),
).split(error).length - 1,
)
.replace(/ data-correction-message="[^"]*"/g, '')
.split(error).length - 1,
1,
);
plan.reportAssumptions.startupExpenses = 'invalid';
assert.equal(render().split(error).length - 1, 1);
assert.equal(
render()
.replace(/ data-correction-message="[^"]*"/g, '')
.replace(/ data-correction-message="[^"]*"/g, '')
.split(error).length - 1,
1,
);
plan.reportSource = 'annual_example';
assert.equal(presentation.forecastErrorShownInReport(plan, error), false);
plan.startupAssetRequirements.cashRequired = '0';