Mapa de erros 4.7: uma ideia nova não se perde ao escolher o dossier
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
Quem chega com um artigo, sector ou parque vê primeiro a criação de um dossier novo para essa ideia; nos dossiers existentes, a acção principal é continuar com a referência, e abrir o dossier sem ela fica explícito. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzJmxFy3izprXr5dSq91jM
This commit is contained in:
@@ -86,6 +86,13 @@ test('selected mining context reaches both new and existing dossier actions',()=
|
||||
nodes(tree).find(n=>n.type==='form').props.onSubmit({preventDefault(){}});
|
||||
assert.equal(posted[1][0],'/investimentos');
|
||||
assert.deepEqual(posted[1][1].sector_reference,initial.sector_reference);
|
||||
// Mapa de erros 4.7: the new idea is offered a new dossier first, and an old
|
||||
// dossier is never opened by its title in a way that drops the reference.
|
||||
const all=nodes(tree);
|
||||
assert.ok(all.findIndex(n=>n.type==='form')<all.findIndex(n=>n.type==='ul'));
|
||||
const open=all.filter(n=>n.type===Link && n.props.href==='/investimentos/SYNTHETIC-case');
|
||||
assert.equal(open.length,1);
|
||||
assert.match(String(open[0].props.children),/sem acrescentar a nova referência/);
|
||||
});
|
||||
|
||||
const energySource=JSON.parse(fs.readFileSync(new URL('database/data/energy-reference-20261111.json',root)));
|
||||
|
||||
Reference in New Issue
Block a user