|
|
@@ -57,9 +57,9 @@ it("概况默认显示,支持键盘切换,各页签共用处理入口和处
|
|
|
expect(screen.getAllByRole("button", { name: "条目核对" }).length).toBeGreaterThan(0);
|
|
|
});
|
|
|
|
|
|
-it("只显示适用页签,交互事实中的服务清单区分零值与缺省值", () => {
|
|
|
+it("只显示适用页签,交付事实中的服务清单区分零值与缺省值", () => {
|
|
|
renderRecord({ construction_guide: null });
|
|
|
- const factsTab = screen.getByRole("tab", { name: "交互事实" });
|
|
|
+ const factsTab = screen.getByRole("tab", { name: "交付事实" });
|
|
|
const overview = screen.getByRole("tab", { name: "工单概况" });
|
|
|
const tabs = screen.getByRole("tablist", { name: "工单详情视图" });
|
|
|
expect(within(tabs).queryByRole("tab", { name: "施工指导" })).toBeNull();
|
|
|
@@ -70,7 +70,7 @@ it("只显示适用页签,交互事实中的服务清单区分零值与缺省
|
|
|
expect(within(tabs).queryByRole("tab", { name: /^工单材料/ })).toBeNull();
|
|
|
|
|
|
fireEvent.click(factsTab);
|
|
|
- const panel = within(screen.getByRole("tabpanel", { name: "交互事实" }));
|
|
|
+ const panel = within(screen.getByRole("tabpanel", { name: "交付事实" }));
|
|
|
const table = within(panel.getByRole("region", { name: "服务清单" }));
|
|
|
expect(table.getByText("办公专线").classList.contains("table-cell-title")).toBe(true);
|
|
|
expect(table.getByText("0").classList.contains("table-number")).toBe(true);
|
|
|
@@ -102,7 +102,7 @@ it("施工回填、竣工回执和报文独立显示,清单与终态材料同
|
|
|
const receipt = pick(/^竣工回执/);
|
|
|
expect(receipt.getByText("COMP-1")).toBeTruthy();
|
|
|
expect(receipt.getByText("回执已确认")).toBeTruthy();
|
|
|
- const facts = pick(/^交互事实/);
|
|
|
+ const facts = pick(/^交付事实/);
|
|
|
expect(facts.getByRole("region", { name: "服务清单" })).toBeTruthy();
|
|
|
expect(within(facts.getByRole("region", { name: "客户提交材料" })).getByText("建单截图.png")).toBeTruthy();
|
|
|
expect(within(facts.getByRole("region", { name: "竣工文件" })).getByText("竣工确认.pdf")).toBeTruthy();
|
|
|
@@ -111,15 +111,15 @@ it("施工回填、竣工回执和报文独立显示,清单与终态材料同
|
|
|
expect(pick(/^运营商报文/).getByText("CARRIER-1")).toBeTruthy();
|
|
|
});
|
|
|
|
|
|
-it("仅有材料的工单仍显示交互事实页签", () => {
|
|
|
+it("仅有材料的工单仍显示交付事实页签", () => {
|
|
|
renderRecord({
|
|
|
ticket: { ...detail.ticket, status: "settled" },
|
|
|
actions: {},
|
|
|
service_items: [],
|
|
|
materials: [{ material_id: "M-1", kind: "construct_material", file_name: "现场照片.png" }],
|
|
|
});
|
|
|
- fireEvent.click(screen.getByRole("tab", { name: "交互事实" }));
|
|
|
- const facts = within(screen.getByRole("tabpanel", { name: "交互事实" }));
|
|
|
+ fireEvent.click(screen.getByRole("tab", { name: "交付事实" }));
|
|
|
+ const facts = within(screen.getByRole("tabpanel", { name: "交付事实" }));
|
|
|
expect(facts.getByText("现场照片.png")).toBeTruthy();
|
|
|
expect(facts.queryByRole("region", { name: "服务清单" })).toBeNull();
|
|
|
});
|