Skip to content

test: add local VTable visual regression suite - #5332

Merged
Rui-Sun merged 9 commits into
developfrom
test/local_visual_test
Sep 28, 2026
Merged

Rui-Sun merged 9 commits into
developfrom
test/local_visual_test

Conversation

@Rui-Sun

@Rui-Sun Rui-Sun commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

变更

  • 新增 VTable 本地视觉回归工具,逐例比较当前工作区与官方 develop 构建。
  • 固定、脱敏的 204 个本地用例覆盖表格、透视表与透视图、Gantt、Sheet、插件、交互及常用 API;迁移用例保留 227 个真实 BugServer case ID 供追溯。按“绝大多数配置和模块具有代表用例”的目标,本轮迁移已基本完成。
  • VTable 仓库保留当前开发需要的覆盖边界和编写规则;阶段性候选去向台账已归档到内部 BugServer 仓库。新增 AGENTS.md,要求开发后运行相关视觉用例、提交 PR 前运行全量测试。
  • 独立新增的本地用例完全省略 BugServer case IDs 行,待未来同步成功并获得真实 ID 后再补写。本 PR 不实现反向同步脚本。

验证

  • 最近一次成功的官方基线全量视觉对比:204/204 通过,0 差异,0 错误;基线 SHA 为 4e5ce4540dc5fb223360d5d7c08efdcfd56b3d78。
  • node --test packages/vtable/scripts/visual-test.test.mjs 通过;--list 列出 204 个用例;仓库 pre-push rush test --only tag:package 通过。
  • 文档收尾后的重复全量运行在 Gantt UMD 构建显示完成后未退出,已手动中止并清理进程与运行锁。本次提交仅改动文档和归档位置,未修改已通过的用例或测试代码。

有业务信息风险的来源未进入公开仓库;剩余候选不按数量强行迁入,后续新增功能或修复缺陷时按具体触发条件补充用例。

// 只加载本轮构建副本;用例不得退回源码或外网版本。
await new Promise((resolve, reject) => {
const script = document.createElement('script');
script.src = `/${phase}-${name}.js`;
@github-actions github-actions Bot added the chore label Sep 24, 2026
@github-actions github-actions Bot removed the chore label Sep 24, 2026
@Rui-Sun
Rui-Sun marked this pull request as ready for review September 28, 2026 07:09
@Rui-Sun
Rui-Sun merged commit 253f47a into develop Sep 28, 2026
7 of 8 checks passed
@Rui-Sun
Rui-Sun deleted the test/local_visual_test branch September 28, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants