Skip to content

test: F3 第二步注入实测(tooltip 会解析 },第三步须处理 {}) - #43

Merged
Smilewithoutfalling merged 3 commits into
masterfrom
feat/f3-step2-inject
Oct 17, 2026
Merged

Smilewithoutfalling merged 3 commits into
masterfrom
feat/f3-step2-inject

Conversation

@Smilewithoutfalling

Copy link
Copy Markdown
Owner

F3 第二步(方案 #42)。结论:P1–P3 在所有面不执行、不成元素;P4 任何位置都不做模板替换;tooltip(richText)里用户字符串的 } 会提前结束 ECharts 的 {样式|名字} 包装,其余位置(标题、轴名、类目轴标签、图例、饼图标签)原样画出。第三步 prepare 必须处理进 tooltip 的 {}。

  • 假服务 inject- / inject-error,载荷与 CSV(csv.writer)经 gen_ui_types 导出 inject.json
  • vitest inject.test.ts(SSR SVG,按 XML 结构判定)
  • e2e f3-inject.spec.ts(托管 dist + CSP,fillText 记录、真机悬停 5 处 + 像素对照、判定表 toEqual 钉住)
  • THREAT_MODEL §2.3 改为实测结论;DEVLOG [38];[37] 回填 acaa8bf

本地:pytest 707、vitest 77、Playwright 11,lint/tsc/build/gen --check 通过。偏离方案见 DEVLOG [38]。

@Smilewithoutfalling
Smilewithoutfalling merged commit 706e9b8 into master Oct 17, 2026
6 checks passed
@Smilewithoutfalling
Smilewithoutfalling deleted the feat/f3-step2-inject branch October 17, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant