|
|
@@ -50,7 +50,7 @@ it("概况默认显示,支持键盘切换,各页签共用处理入口和处
|
|
|
expect(within(screen.getByRole("tabpanel", { name: "施工指导" })).getByText(detail.construction_guide.hint)).toBeTruthy();
|
|
|
|
|
|
fireEvent.keyDown(guide, { key: "End" });
|
|
|
- expect(screen.getAllByRole("tabpanel")).toEqual([screen.getByRole("tabpanel", { name: "关联资料" })]);
|
|
|
+ expect(screen.getAllByRole("tabpanel")).toEqual([screen.getByRole("tabpanel", { name: "客户与订阅" })]);
|
|
|
expect(screen.getByRole("heading", { name: "处理记录" })).toBeTruthy();
|
|
|
expect(screen.getAllByRole("button", { name: "条目核对" }).length).toBeGreaterThan(0);
|
|
|
});
|
|
|
@@ -105,14 +105,15 @@ it("施工回填、竣工回执、材料和报文有各自的页签,终态材
|
|
|
expect(pick(/^运营商报文/).getByText("CARRIER-1")).toBeTruthy();
|
|
|
});
|
|
|
|
|
|
-it("关联资料分组显示客户和订阅字段,并保留对应档案入口", () => {
|
|
|
+it("客户与订阅页签显示客户和订阅字段,并保留对应档案入口", () => {
|
|
|
renderRecord({
|
|
|
customer: { customer_id: "CUS-1", customer_name: "澄澜科技", customer_code: "KL-01", contact_name: "林女士", contact_mobile: "138****0000", address_missing: true },
|
|
|
order: { subscription_id: "SUB-1", plan_name: "跨境办公专线", plan_kind: "fixed", status: "active" },
|
|
|
subscriptions: [{ subscription_id: "SUB-2", plan_name: "叠加服务", parent_subscription_id: "SUB-1" }],
|
|
|
});
|
|
|
- fireEvent.click(screen.getByRole("tab", { name: "关联资料" }));
|
|
|
- const related = within(screen.getByRole("tabpanel", { name: "关联资料" }));
|
|
|
+ fireEvent.click(screen.getByRole("tab", { name: "客户与订阅" }));
|
|
|
+ const related = within(screen.getByRole("tabpanel", { name: "客户与订阅" }));
|
|
|
+ expect(related.queryByRole("heading", { name: "来源与追溯" })).toBeNull();
|
|
|
const customer = within(related.getByRole("heading", { name: "客户资料" }).closest("section")!);
|
|
|
expect(customer.getByText("联系电话").tagName).toBe("DT");
|
|
|
expect(customer.getByText("138****0000").tagName).toBe("DD");
|