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 明确失败后"),
    });
  });
});
