feat: rebuild review detail decision surface

This commit is contained in:
afei A
2026-03-28 00:22:08 +08:00
parent f2deb54f3a
commit edd03b03a7
6 changed files with 87 additions and 89 deletions

View File

@@ -222,6 +222,17 @@ afterEach(() => {
pushMock.mockReset();
});
test("renders a sticky summary with grouped decision panels", async () => {
const fetchMock = createFetchMock();
vi.stubGlobal("fetch", fetchMock);
render(<ReviewWorkbenchDetailScreen orderId={101} />);
expect(await screen.findByRole("link", { name: "返回审核列表" })).toBeInTheDocument();
expect(screen.getByText("审核动作")).toBeInTheDocument();
expect(screen.getByText("人工修订")).toBeInTheDocument();
});
test("requires a comment before rerun_face submission in detail view", async () => {
const fetchMock = createFetchMock();
vi.stubGlobal("fetch", fetchMock);