- •
Ensure the CMS is running locally, or the web app is connected to the remote CMS.
- •
Start the web dev server in the background (if not already running):
bashcd web && pnpm dev
- •
Wait for port 4321 to be ready, use a different port if needed.
- •
Use agent-browser to test:
bashagent-browser open http://localhost:4321 agent-browser snapshot -i # Get interactive elements with refs agent-browser click @e2 # Click element by ref
to see all available commands, run
agent-browser --help - •
Stop the dev server when done
test-web
在提交代码前,使用代理浏览器CLI测试Web应用,确保功能按预期运行。
SKILL.md
--- frontmattername: test-web description: Test the web application using the agent-browser CLI to ensure a feature is working as expected before making a commit. argument-hint: [test-description]