test(ui): make inferred questions originate branches
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user