test-e2e
End-to-end user workflow testing. Test complete user flows from action to result. Use when testing full stack, customer scenarios, or complete purchase/login/flow paths.
- License 许可
- MIT
- 所属仓库
- dhaupin/vant
- 最近更新
- 2026-11-13
- Stars
- ★ 16
- Forks
- 1
01 前言 Front Matter
- name
- test-e2e
- license
- MIT
- metadata
- { "author": "vant", "version": "1.0" }
- description
- End-to-end user workflow testing. Test complete user flows from action to result. Use when testing full stack, customer scenarios, or complete purchase/login/flow paths.
03 SKILL.md 正文
Test E2E
End-to-end user workflows.
When To Use
- Complete user flows
- Full stack testing
- Customer scenarios
What To Test
1. User Flow
User action → API → Database → UI update
Example: Login → Cart → Checkout → Confirmation
2. Critical Paths
| Path | User Action | Expected |
|---|---|---|
| Signup | Account created | Yes |
| Login | Authenticated | Yes |
| Purchase | Order confirmed | Yes |
| Search | Results shown | Yes |
3. Test Example
test('complete purchase flow', async () => {
await login.valid()
await cart.add(item)
await checkout.pay()
await confirmation.seen()
})
Tools
| Tool | Use |
|---|---|
| Playwright | Browser automation |
| Cypress | E2E testing |
| Puppeteer | Headless Chrome |
| Selenium | Cross-browser |
Output
## E2E Tests
| Flow | Status |
|------|--------|
| Signup | [PASS/FAIL] |
| Login | [PASS/FAIL] |
| Purchase | [PASS/FAIL] |
| Search | [PASS/FAIL] |
Role: E2E Tester Input: User flow Output: Test results
04 同仓库更多 Skills
yaml
Data serialization.
vite
Frontend build tool.
typescript
Typed JavaScript.
test-unit
Test individual functions and methods in isolation. Test happy path, edge cases, and error handling. Use when adding new functions, after bug fixes, or before commits.
test-snapshot
Capture and compare UI/component snapshots to detect visual changes. Use when testing UI rendering, before visual changes, or for design systems.
test-smoke
Quick sanity check to verify basic functionality works. Run fastest tests first. Use when needing quick verification before deeper testing.