Repository navigation
feat(scripts): add Tabbit CLI E2E UI verification & screenshot workflow - #66
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. 需求与预期效果
scripts/tabbit-pr-verify.mjs) driven bytabbit-cli. This allows contributors and reviewers to quickly spin up the frontend, verify core user flows (Landing, Changelog navigation, Skin picker, Input activation), and attach standardized visual evidence directly into PR Section 5.node scripts/tabbit-pr-verify.mjsagainst the local Vite dev server automatically traverses 4 core UI scenarios within ~5 seconds and produces clean viewport screenshots without touching desktop windows or polluting user tabs.2. 候选参考方案与边界
tabbit-cli nodejsto execute Playwright-compatible automation inside an isolated Tabbit tab group (--task ResumeAgent-Verify-<timestamp>), then clean up the group viatabbit-cli finish.http://127.0.0.1:5173/); does not modify any productionfrontend/srcorbackend/code; leaves video recording optional.3. 架构取舍与外部调研
tabbit-clileverages the existing Tabbit runtime for zero-setup, viewport-scoped screenshots (~270KB per PNG).4. 验证结果
node scripts/tabbit-pr-verify.mjsagainst local Vite (http://127.0.0.1:5173/):0{"title":"Resume Agent (Beta) - AI智能简历生成器","verified":true,"startButtonDisabled":false}/tmp/resume-tabbit-verify/.5. 前端 UI 变化与截图
This PR adds a verification utility script (
scripts/tabbit-pr-verify.mjs) and does not alter production UI components. Below is the live UI verification matrix captured automatically by Tabbit CLI:/)/changelog)开始enabled)中文说明
1. 需求与预期效果
tabbit-cli驱动的端到端 UI 自动验证与截图脚本(scripts/tabbit-pr-verify.mjs),帮助开发者和 Reviewer 在本地快速走通核心交互场景并生成标准化截图,直接回填至 PR 第 5 节。node scripts/tabbit-pr-verify.mjs,约 5 秒即可自动跑完 4 个核心场景并输出干净的视口截图,不打扰桌面窗口且不污染用户现有标签页。2. 候选参考方案与边界
tabbit-cli nodejs在独立的 Tabbit 标签组(--task ResumeAgent-Verify-<timestamp>)中运行标准 Playwright 交互流,执行完毕后自动调用tabbit-cli finish回收标签组。frontend/src或backend/业务代码。3. 架构取舍与外部调研
tabbit-cli直接复用本地 Tabbit 浏览器内核,零额外依赖且视口截图仅 ~270KB。4. 验证结果
http://127.0.0.1:5173/)实测执行node scripts/tabbit-pr-verify.mjs:0{"title":"Resume Agent (Beta) - AI智能简历生成器","verified":true,"startButtonDisabled":false}5. 前端 UI 变化与截图
本 PR 仅新增自动截图验证脚本,未修改前端业务界面。上方表格展示了通过 Tabbit CLI 自动捕获的 4 个真实交互场景截图(首页默认态、更新日志页、皮肤切换面板、输入框激活态)。