You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chajia/__tests__/workers/rpa/quote-pipeline-gate.test.ts

14 lines
477 B

import { describe, expect, it } from "vitest";
import type { Page } from "playwright";
import { runQuoteCapturePipeline } from "@/workers/rpa/quote-capture/pipeline";
describe("runQuoteCapturePipeline gate", () => {
it("未带 widgetFallbackAfterDirectFailure 时拒绝启动 Widget", async () => {
await expect(
runQuoteCapturePipeline({} as Page),
).rejects.toMatchObject({
message: expect.stringContaining("Direct 明确失败后"),
});
});
});