R107/A1-A6 修复网页视觉巡检问题
这个提交包含在:
@@ -566,6 +566,10 @@ test.describe.serial("R106 自动视觉巡检", () => {
|
||||
await adminMobileContext.close();
|
||||
|
||||
writeReport(seedData);
|
||||
if (process.env.R106_VISUAL_FAIL_ON_FINDINGS === "1") {
|
||||
const summary = findings.map((finding) => `${finding.severity} ${finding.page} / ${finding.category}: ${finding.title}`).join("\n");
|
||||
expect(findings, summary || "R106 visual findings should be empty").toEqual([]);
|
||||
}
|
||||
await expect.poll(() => findings.length, { message: "R106 report generated" }).toBeGreaterThanOrEqual(0);
|
||||
});
|
||||
});
|
||||
|
||||
在新工单中引用
屏蔽一个用户