chore: 添加设计分析参考和辅助脚本
- IHG设计分析HTML参考页面 - 布局检查、DOM诊断、验收测试等辅助脚本
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
const { chromium } = require("playwright");
|
||||
(async () => {
|
||||
const browser = await chromium.launch({ headless: true });
|
||||
const page = await browser.newPage({ viewport: { width: 1280, height: 800 } });
|
||||
|
||||
try {
|
||||
await page.goto("http://localhost:3000/products/novavis", { waitUntil: "domcontentloaded", timeout: 20000 });
|
||||
await page.waitForTimeout(3000);
|
||||
|
||||
const bodyText = await page.evaluate(() => document.body?.innerText || "");
|
||||
|
||||
const checks = [
|
||||
["产品标题: 睿视 NovaVis", bodyText.includes("睿视 NovaVis")],
|
||||
["定位: 面向执法机关", bodyText.includes("面向执法机关")],
|
||||
["定位: 智能数据分析平台", bodyText.includes("智能数据分析平台")],
|
||||
["特性1: 完全离线运行", bodyText.includes("完全离线运行")],
|
||||
["特性2: AI 智能分析引擎", bodyText.includes("AI 智能分析引擎")],
|
||||
["特性3: 智能关系网络图谱", bodyText.includes("关系网络图谱")],
|
||||
["特性4: 全链路资金追踪", bodyText.includes("全链路资金追踪")],
|
||||
["特性5: 一键报告生成", bodyText.includes("一键报告生成")],
|
||||
["数据证明: 数据处理能力", bodyText.includes("数据处理能力")],
|
||||
["数据证明: 百万级记录秒级处理", bodyText.includes("百万级记录")],
|
||||
["规格: 完全离线运行 零网络依赖", bodyText.includes("零网络依赖")],
|
||||
["规格: 等保三级", bodyText.includes("等保三级")],
|
||||
["场景: 经济犯罪侦查", bodyText.includes("经济犯罪侦查")],
|
||||
["场景: 反腐败调查", bodyText.includes("反腐败调查")],
|
||||
["CTA: 预约体验", bodyText.includes("预约体验")],
|
||||
];
|
||||
|
||||
console.log("=== NovaVis /products/novavis 最终验证 ===\n");
|
||||
let passed = 0;
|
||||
for (const [label, ok] of checks) {
|
||||
if (ok) passed++;
|
||||
console.log(ok ? " ✅" : " ❌", label);
|
||||
}
|
||||
console.log(`\n 结果: ${passed}/${checks.length} 通过`);
|
||||
|
||||
if (passed === checks.length) {
|
||||
console.log("\n 🎉 NovaVis 产品页迁移完成,所有核心内容正确渲染!");
|
||||
}
|
||||
|
||||
} catch(e) {
|
||||
console.error("ERROR:", e.message);
|
||||
}
|
||||
await browser.close();
|
||||
})();
|
||||
Reference in New Issue
Block a user