首页/ AI 技能 / @skilllib/skill-2014279415688015875
Skill站外收录 @skilllib/skill-2014279415688015875

e2e-frontend-validation

提供端到端的前端修改验证能力,通过自动化构建、启动本地服务、遍历所有路由并执行浏览器导航与截图,确保 playground 包中 UI 变更正确渲染且交互功能正常。

0.0 (0) 594 次安装 原作者 编程导航
收录于 2026-01-22
测试与安全 AI 技能

Skills.MD

# E2E Validation for Frontend Modifications ## Prerequisites Requires Playwright MCP server. If the `browser_navigate` tool is unavailable, instruct the user to add it: ```sh claude mcp add playwright -- npx @playwright/mcp@latest ``` ## Validation Steps After completing frontend changes: 1. **Build the CLI** ```sh pnpm build:cli ``` 2. **Start the dev server** ```sh cd examples/agent && node ../../packages/cli/dist/index.js dev ``` 3. **Verify server is running** - URL: http://localhost:4111 - Wait for the server to be ready before proceeding 4. **Identify impacted routes** - Routes are defined in `packages/playground/src/App.tsx` - Browse them ALL to verify behavior 5. **Test with Playwright MCP** - Use `browser_navigate` to visit each impacted route - Visually verify the changes render correctly - Test any interactive elements modified - Use `browser_screenshot` to capture results for the user ## Quick Reference | Step | Command/Action | | ------- | ---------------------------------------------------------------- | | Build | `pnpm build:cli` | | Start | `cd examples/agent && node ../../packages/cli/dist/index.js dev` | | App URL | http://localhost:4111 | | Routes | `@packages/playground/src/App.tsx` |

评论 0

还没有评论,来抢沙发。