R105/A6-A7 完成试运行验收收口
这个提交包含在:
@@ -18,7 +18,11 @@ test("手工 live 腾讯 OCR 辅助复核:真实 VAT 发票上传后进入可
|
||||
|
||||
const result = await uploadLiveInvoiceAndWait(page, invoiceFilePath);
|
||||
if (result.status === "ocr_failed") {
|
||||
throw new Error(`live 腾讯 OCR 失败:${result.bannerText || result.detailText}`);
|
||||
const allowDuplicate = process.env.PLAYWRIGHT_OCR_ALLOW_DUPLICATE === "1";
|
||||
const duplicateDetected = `${result.bannerText}\n${result.detailText}`.includes("重复");
|
||||
if (!allowDuplicate || !duplicateDetected) {
|
||||
throw new Error(`live 腾讯 OCR 失败:${result.bannerText || result.detailText}`);
|
||||
}
|
||||
}
|
||||
|
||||
expect(result.invoiceCode ?? result.invoiceNumber, JSON.stringify(result)).toBeTruthy();
|
||||
|
||||
在新工单中引用
屏蔽一个用户