feat(ui): 统一面板空状态引导
This commit is contained in:
@@ -62,6 +62,24 @@ describe("AnalysisReport", () => {
|
||||
document.body.classList.remove("burst-analysis-report-printing");
|
||||
});
|
||||
|
||||
it("guides the user to choose a scheme when no report is active", () => {
|
||||
render(
|
||||
<AnalysisReport
|
||||
scheme={null}
|
||||
valveResult={null}
|
||||
disabledValves={[]}
|
||||
generatedAt={null}
|
||||
/>,
|
||||
);
|
||||
|
||||
expect(screen.getByText("尚未选择分析方案")).toBeInTheDocument();
|
||||
expect(
|
||||
screen.getByText(
|
||||
"请在“方案查询”中打开一个方案,再查看分析报告。",
|
||||
),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("renders the selected scheme, pipe data, and matching valve result", async () => {
|
||||
render(
|
||||
<AnalysisReport
|
||||
|
||||
Reference in New Issue
Block a user