|
|
@@ -119,7 +119,8 @@ it("客户与订阅页签显示客户和订阅字段,并保留对应档案入
|
|
|
expect(customer.getByText("138****0000").tagName).toBe("DD");
|
|
|
expect(customer.getByRole("button", { name: "资料缺失,需补充" })).toBeTruthy();
|
|
|
|
|
|
- fireEvent.click(customer.getByRole("button", { name: "查看客户档案" }));
|
|
|
+ expect(customer.queryByRole("button", { name: "查看客户档案" })).toBeNull();
|
|
|
+ fireEvent.click(customer.getByRole("button", { name: "澄澜科技" }));
|
|
|
expect(vi.mocked(ReferenceDrawer).mock.lastCall?.[0].stack.at(-1)).toMatchObject({ kind: "customer", id: "CUS-1" });
|
|
|
const subscription = within(related.getByRole("heading", { name: "关联订阅" }).closest("section")!);
|
|
|
expect(subscription.getByText("叠加于 SUB-1")).toBeTruthy();
|
|
|
@@ -130,6 +131,7 @@ it("客户与订阅页签显示客户和订阅字段,并保留对应档案入
|
|
|
it("追溯与关联独立展示工单来源、续签合同和关联报文", () => {
|
|
|
renderRecord({
|
|
|
ticket: { ...detail.ticket, ticket_type: "renewal", renew_from_contract_no: "HT-OLD", renew_contract_no: "HT-NEW", source_message_id: "MSG-1" },
|
|
|
+ order: { subscription_id: "SUB-1", order_no: "ORDER-1" },
|
|
|
messages: [{ message_id: "MSG-1", carrier_order_no: "CARRIER-1" }],
|
|
|
});
|
|
|
fireEvent.click(screen.getByRole("tab", { name: "追溯与关联" }));
|
|
|
@@ -139,4 +141,7 @@ it("追溯与关联独立展示工单来源、续签合同和关联报文", () =
|
|
|
expect(trace.getByText("HT-OLD")).toBeTruthy();
|
|
|
expect(trace.getByText("HT-NEW")).toBeTruthy();
|
|
|
expect(trace.getByText("CARRIER-1")).toBeTruthy();
|
|
|
+ expect(trace.getByText("关联订单号")).toBeTruthy();
|
|
|
+ fireEvent.click(trace.getByRole("button", { name: "ORDER-1" }));
|
|
|
+ expect(vi.mocked(ReferenceDrawer).mock.lastCall?.[0].stack.at(-1)).toMatchObject({ kind: "order", id: "SUB-1" });
|
|
|
});
|