OAFRONT6 压缩长编号展示并修正视觉探针
这个提交包含在:
@@ -228,6 +228,11 @@ async function readMetrics(page: Page) {
|
||||
text: (element.textContent ?? element.getAttribute("aria-label") ?? element.getAttribute("placeholder") ?? "").trim().slice(0, 40),
|
||||
}));
|
||||
const englishFound = englishTerms.filter((term) => text.includes(term));
|
||||
const forbiddenPage =
|
||||
window.location.pathname === "/403" ||
|
||||
headings.some((heading) => /^(403|无权访问|权限不足)$/.test(heading)) ||
|
||||
Array.from(document.querySelectorAll("[role='alert'],[data-testid='forbidden-page']"))
|
||||
.some((element) => /^(403|无权访问|权限不足)/.test((element.textContent ?? "").trim()));
|
||||
return {
|
||||
title: document.title,
|
||||
width,
|
||||
@@ -243,7 +248,7 @@ async function readMetrics(page: Page) {
|
||||
englishFound,
|
||||
datePlaceholderCount: inputsWithDatePlaceholders,
|
||||
clippedControls,
|
||||
forbiddenLike: text.includes("无权访问") || text.includes("403") || text.includes("权限不足"),
|
||||
forbiddenLike: forbiddenPage,
|
||||
appErrorLike: text.includes("页面加载失败") || text.includes("加载失败") || text.includes("出错了"),
|
||||
navPortalCopy: text.includes("Portal"),
|
||||
};
|
||||
|
||||
在新工单中引用
屏蔽一个用户