收敛审批动作面板并清理层叠遗留 [approval-action-panel-kiss-layering]
这个提交包含在:
@@ -123,21 +123,7 @@ describe("paymentProcessingProgress", () => {
|
||||
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");
|
||||
|
||||
在新工单中引用
屏蔽一个用户