test(ui): make inferred questions originate branches

This commit is contained in:
2026-08-20 14:29:42 +01:00
parent 65ced2e406
commit 4b264c5681
3 changed files with 63 additions and 23 deletions
+15
View File
@@ -190,6 +190,21 @@ export function useBranchScopedFixture() {
return Object.values(BRANCH_META).map(m => ({ ...m }));
},
/** Return all inferred questions across branches (flat list for post-Analyse surface). */
getAllInferredQuestions() {
const qA1 = this._qA1;
const qA2 = this._qA2;
const qB1 = this._qB1;
const qB2 = this._qB2;
if (!qA1 || !qA2 || !qB1 || !qB2) return [];
return [
{ id: qA1.id, text: qA1.text, branchId: "branch-competitor-development" },
{ id: qA2.id, text: qA2.text, branchId: "branch-competitor-development" },
{ id: qB1.id, text: qB1.text, branchId: "branch-customer-demand" },
{ id: qB2.id, text: qB2.text, branchId: "branch-customer-demand" },
];
},
/** Return all records (for verification / debugging). */
getAllRecords() {
return allRecords;