fix(assets): expose full inventory for scoped users and stabilize previews
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -129,7 +129,7 @@ test("multi-level clicks and follow-ups preserve exact scope, branching and reco
|
||||
const root = await ask(app, {
|
||||
message: "各区域的库存车辆有多少?按数量排序。",
|
||||
});
|
||||
assert.equal(root.rows.length, 4);
|
||||
assert.equal(root.rows.length, 5);
|
||||
assert.equal(root.plan.category, "inventory");
|
||||
const region = await ask(app, {
|
||||
...based(root),
|
||||
@@ -137,13 +137,13 @@ test("multi-level clicks and follow-ups preserve exact scope, branching and reco
|
||||
});
|
||||
assert.deepEqual(region.plan.filters, { region: ["华东"] });
|
||||
assert.equal(region.plan.groupBy, "city");
|
||||
assert.equal(region.rows.length, 3);
|
||||
assert.equal(region.rows.length, 4);
|
||||
const city = await ask(app, {
|
||||
...based(region),
|
||||
action: { type: "drill", keys: { city: "嘉兴市" } },
|
||||
});
|
||||
assert.deepEqual(city.plan.filters, { region: ["华东"], city: ["嘉兴市"] });
|
||||
assert.equal(city.rows.length, 2);
|
||||
assert.equal(city.rows.length, 3);
|
||||
const types = await ask(app, { ...based(city), message: "再按车型拆分" });
|
||||
assert.deepEqual(types.plan.filters, city.plan.filters);
|
||||
assert.equal(types.plan.groupBy, "type");
|
||||
@@ -167,7 +167,7 @@ test("multi-level clicks and follow-ups preserve exact scope, branching and reco
|
||||
action: { type: "restore" },
|
||||
});
|
||||
assert.deepEqual(branch.plan.filters, {});
|
||||
assert.equal(branch.rows.length, 4);
|
||||
assert.equal(branch.rows.length, 5);
|
||||
assert.equal(detail.breadcrumbs?.length, 6);
|
||||
for (const r of [root, region, city, types, subsets, detail])
|
||||
assert.equal(
|
||||
|
||||
Reference in New Issue
Block a user