feat(editorial): review demographic batches before explicit publication
This commit is contained in:
@@ -236,3 +236,36 @@ test('portfolio review presents proposed base data and territory without applyin
|
||||
assert.match(html, /Localização proposta: Distrito sintético/);
|
||||
assert.doesNotMatch(html, /qa-district|territory_version/);
|
||||
});
|
||||
|
||||
test('demographic edition presents provenance, warnings and protected original with a separate publication step', () => {
|
||||
const html = render({
|
||||
subject: 'demography',
|
||||
resource: { ...props.resource, id: 'qa-batch', published: false },
|
||||
edition: {
|
||||
...props.edition,
|
||||
state: 'approved',
|
||||
payload: {
|
||||
...props.edition.payload,
|
||||
resource: {
|
||||
title: 'Exemplar sintético',
|
||||
source: 'Fonte QA',
|
||||
publication_version: 'Edição não indicada no original',
|
||||
observations: 10,
|
||||
sha256: 'a'.repeat(64),
|
||||
dataset_hash: 'b'.repeat(64),
|
||||
report: { issue_counts: { unit_not_supplied: 2 } },
|
||||
},
|
||||
files: [],
|
||||
},
|
||||
},
|
||||
});
|
||||
assert.match(html, /10 observações conferidas/);
|
||||
assert.match(html, /Edição não indicada no original/);
|
||||
assert.match(html, /unit_not_supplied: 2 advertências conservadas/);
|
||||
assert.match(
|
||||
html,
|
||||
/href="\/management\/editorial\/demography\/qa-batch\/original"/,
|
||||
);
|
||||
assert.match(html, /value="publish"/);
|
||||
assert.doesNotMatch(html, /Alterar artigo|Alterar ficha da carteira/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user