fix(detail-page-structure-progress-actions): 收敛操作面板定位并补充制单诊断
ci-e2e / e2e (push) Canceled after 0s
ci-minimal / check-minimal (push) Canceled after 0s

这个提交包含在:
2026-08-03 16:41:32 +08:00
父节点 59e91b8789
当前提交 a5b7e18507
共修改 8 个文件,包含 147 行新增和 12 行删除
@@ -117,6 +117,28 @@ describe("paymentProcessingProgress", () => {
expect(assembler).not.toContain('label: "付款完成"');
}
});
it("keeps workflow action stacking local while the shared panel owns sticky positioning", () => {
const templateSource = fs.readFileSync(
path.resolve(__dirname, "../../../../client/src/components/patterns/BusinessDetailTemplate.tsx"),
"utf8",
);
const workflowSource = fs.readFileSync(
path.resolve(__dirname, "../../../../client/src/pages/WorkflowTaskDetailPage.tsx"),
"utf8",
);
const cssSource = fs.readFileSync(
path.resolve(__dirname, "../../../../client/src/index.css"),
"utf8",
);
const workflowPanelRule = cssSource.match(/\.workflow-action-panel\s*\{([^}]*)\}/)?.[1] ?? "";
expect(templateSource).toContain("detail-action-panel lg:sticky lg:top-24");
expect(workflowSource).toContain('className="workflow-action-panel"');
expect(workflowSource).not.toMatch(/className="workflow-action-panel[^"]*lg:top-/);
expect(workflowPanelRule).toContain("@apply relative z-30;");
expect(workflowPanelRule).not.toMatch(/lg:(?:sticky|top-)/);
});
});
const fs = require("node:fs");
const path = require("node:path");