<feed xmlns='http://www.w3.org/2005/Atom'>
<title>strategy-lab.git/frontend/scripts/chart-overflow-probe.mjs, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>http://git.somhairle.bid/strategy-lab.git/atom?h=main</id>
<link rel='self' href='http://git.somhairle.bid/strategy-lab.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.somhairle.bid/strategy-lab.git/'/>
<updated>2026-09-18T00:27:06+00:00</updated>
<entry>
<title>test(frontend): 真浏览器 UI 溢出与图表渲染验证脚本</title>
<updated>2026-09-18T00:27:06+00:00</updated>
<author>
<name>Somhairle H. Marisol</name>
<email>muqiu-han@outlook.com</email>
</author>
<published>2026-09-18T00:27:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.somhairle.bid/strategy-lab.git/commit/?id=b4f1136457a08c6ad6ef52d9dc1f83fef050d87c'/>
<id>urn:sha1:b4f1136457a08c6ad6ef52d9dc1f83fef050d87c</id>
<content type='text'>
[变更性质]
新增验证脚本，非产品代码。

[测试目标]
Leader 要求每个页面在真浏览器 375/768/1440 三档下零横向溢出、零
pageerror，且迁移后的 layerchart 图表须在含数据状态下渲染并遵循
同一溢出约束（空态验证无法覆盖）。

[测试方案]
scripts/ui-verify.mjs：静态服务 dist + Playwright chromium，按路由×
宽度断言 document overflow=0、pageerror=0、bg/fg 主题成立，输出
overflow-probe.json 与全页截图。scripts/chart-overflow-probe.mjs：以
page.route mock /api（含 /api/auth/me、runs 列表带 result、结果单），
勾选两个已完成回测触发对比曲线，真实渲染 svgs 并断言宽度内渲染。
证据存 artifacts/ui-shadcn/（30 组合全 OK，图表 6 组合全 OK）。

[影响范围]
仅验证工具链，node frontend/scripts/... 手动运行；不影响构建产物。
</content>
</entry>
</feed>
