Rebuild SCUM plugin data ownership
This commit is contained in:
@@ -112,8 +112,8 @@ describe("SCUM plugin feature module", () => {
|
||||
const gifts = renderAndCollect({ pageKey: "gifts", pageTitle: "礼包管理" });
|
||||
expect(gifts.nodes).toContain("section:礼包管理");
|
||||
expect(gifts.texts.join("\n")).toContain("typed delivery workflow");
|
||||
expect(gifts.texts).toContain("礼包定义");
|
||||
expect(gifts.texts).toContain("定时礼包完成");
|
||||
expect(gifts.buttons.find((button) => button.label === "创建礼包发放")?.disabled).toBe(false);
|
||||
expect(gifts.buttons.find((button) => button.label === "发送通知")?.disabled).toBe(false);
|
||||
|
||||
const workflows = renderAndCollect({ pageKey: "workflows", pageTitle: "Workflow 状态" });
|
||||
expect(workflows.nodes).toContain("section:Workflow 状态");
|
||||
@@ -121,10 +121,11 @@ describe("SCUM plugin feature module", () => {
|
||||
expect(workflows.texts.join("\n")).toContain("read-positions");
|
||||
});
|
||||
|
||||
it("loads projections through typed workspace actions instead of file snapshots", () => {
|
||||
expect(pageSource).toContain("listSCUMPlayers");
|
||||
expect(pageSource).toContain("createSCUMOperation");
|
||||
expect(pageSource).toContain("createSCUMWorkflow");
|
||||
it("loads plugin-owned projections through generic platform collections instead of file snapshots", () => {
|
||||
expect(pageSource).toContain("pluginData");
|
||||
expect(pageSource).toContain('"scum_users"');
|
||||
expect(pageSource).toContain('"scum_squads"');
|
||||
expect(pageSource).toContain('"scum_map_points"');
|
||||
expect(pageSource).not.toContain("getFileSnapshot");
|
||||
expect(pageSource).not.toContain("requestFile");
|
||||
expect(pageSource).not.toContain("writeFile");
|
||||
|
||||
Reference in New Issue
Block a user