Use agent-browser to perform end-to-end verification of the platform's core functionality, ensuring that new features work and old features are not broken.
Steps
Step 1: Start Services
Unless the user passes in --skip-start, run the following command to start all services:
./scripts/start-services.sh --langfuse
Wait for the services to be ready, and confirm that the following ports are accessible:
- api-server :3000
- web-frontend :5173
- aieda-ui :5174
If the user passed in --skip-start, skip this step and go directly to testing.
Step 2: Use agent-browser to perform end-to-end testing
Use the /agent-browser skill to open the browser and execute the following test scenarios step by step.Take a screenshot after each scenario as evidence, and if a scenario fails, record the reason for the failure and continue to the next scenario.
Scenario 1: Login Verification
- Open
http://localhost:5173/login - Enter
test@test.com - in the email input field. Enter
12345678 - Click the "Login" button
- Verify redirection to the
/chatpage - Save screenshot
Scenario 2: Create New Session
- On the
/chatpage, find the "New Chat" button in the sidebar (Plus icon) - Click "New Chat"
- Verify that a new empty conversation appears in the chat area
- Save screenshot
Scenario 3: Send Message and Chat
- In the chat input box (textarea), enter
你好,请介绍一下你自己 - Click the send button or press Enter to send
- Wait for the AI reply (wait up to 30 seconds)
- Verify that the user's sent message and the AI's reply appear in the message list
- Save screenshot
Scenario 4: Multi-turn Conversation
- In the same conversation, continue by entering
你能做什么? - Send the message
- Wait for the AI reply (wait up to 30 seconds)
- Verify that the message list contains two user messages and two AI replies
- Save screenshot
Scenario 5: Verify New Features
- Check the recent git commit records (
git log --oneline -10) to identify recently added features - Based on the new features, design the corresponding test operations
- Execute the test operations and verify that the features are available
- Save screenshot
Step 3: Summarize Test Results
After all scenarios have been executed, output a test report:
## 端到端功能验证报告
| 场景 | 状态 | 备注 |
|------|------|------|
| 登录验证 | PASS/FAIL | ... |
| 新建会话 | PASS/FAIL | ... |
| 发送消息与聊天 | PASS/FAIL | ... |
| 多轮对话 | PASS/FAIL | ... |
| 新功能验证 | PASS/FAIL | ... |
If there are any FAIL items, list the specific reasons for failure and possible directions for fixes.
Notes
- Starting the services takes time; wait for the health check to pass before starting testing
- Between agent-browser operations, wait an appropriate amount of time for page loading to avoid operating before elements have finished rendering
- After a chat message is sent, the AI reply may take a long time, so set a reasonable wait timeout
- If login fails, do not continue with subsequent scenarios; report the login issue directly
- Screenshots are used as evidence to help locate issues