Integrate supplied institutions by location category and type through investor dossiers

This commit is contained in:
2026-11-10 20:59:24 +02:00
parent 5ff9402fd0
commit 5a5cc9e815
26 changed files with 33731 additions and 80 deletions
+3 -1
View File
@@ -26,7 +26,7 @@ function load(file, mocks = {}) {
(name) =>
name in mocks
? mocks[name]
: name === '@/pages/investment/shared'
: name === '@/components/funding-classification' ? load('components/funding-classification.tsx',mocks) : name === '@/pages/investment/shared'
? { card: 'card', input: 'input', button: 'button' }
: require(name),
module,
@@ -189,6 +189,7 @@ test('actual dossier continuation freezes a lost response retry and retains doss
let tree = render();
const selects = flatten(tree).filter((n) => n.type === 'select');
selects[1].props.onChange({ target: { value: product.code } });
selects[2].props.onChange({ target: { value: 'qa-branch' } });
flatten(tree)
.find((n) => n.type === 'input' && n.props.type === 'checkbox')
.props.onChange({ target: { checked: true } });
@@ -214,6 +215,7 @@ test('actual dossier continuation freezes a lost response retry and retains doss
assert.equal(calls[0].body.context, 'qa-dossier');
assert.equal(calls[0].body.opportunity, 'qa-opportunity');
assert.equal(calls[0].body.product, product.code);
assert.equal(calls[0].body.location_id, 'qa-branch');
tree = render();
assert.equal(
flatten(tree).find((n) => n.type === 'a').props.href,