ck:web-testing
Web testing with Playwright, Vitest, k6. E2E/unit/integration/load/security/visual/a11y testing. Use for test automation, flakiness, Core Web Vitals, mobile gestures, cross-browser.
- License 许可
- Apache-2.0
- 所属仓库
- tvanle/MiniProj
- 最近更新
- 2026-10-04
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- ck:web-testing
- license
- Apache-2.0
- version
- 3.0.0
- description
- Web testing with Playwright, Vitest, k6. E2E/unit/integration/load/security/visual/a11y testing. Use for test automation, flakiness, Core Web Vitals, mobile gestures, cross-browser.
- argument-hint
- [test-type] [target]
02 资源文件 28
- 参考文档checklist.md891 B
- 其他customize.toml1.6 KB
- 参考文档references/accessibility-testing.md1.9 KB
- 参考文档references/api-testing.md1.8 KB
- 参考文档references/ci-cd-testing-workflows.md2.5 KB
- 参考文档references/component-testing.md2.4 KB
- 参考文档references/contract-testing.md3.3 KB
- 参考文档references/cross-browser-checklist.md1.7 KB
- 参考文档references/database-testing.md3.3 KB
- 参考文档references/e2e-testing-playwright.md2.7 KB
- 参考文档references/functional-testing-checklist.md2.7 KB
- 参考文档references/interactive-testing-patterns.md2.5 KB
- 参考文档references/load-testing-k6.md1.7 KB
- 参考文档references/mobile-gesture-testing.md2.1 KB
- 参考文档references/performance-core-web-vitals.md3.1 KB
- 参考文档references/playwright-component-testing.md2.8 KB
- 参考文档references/pre-release-checklist.md1.8 KB
- 参考文档references/security-checklists.md2.5 KB
- 参考文档references/security-testing-overview.md2.8 KB
- 参考文档references/shadow-dom-testing.md1.6 KB
- 参考文档references/test-data-management.md2.9 KB
- 参考文档references/test-flakiness-mitigation.md1.8 KB
- 参考文档references/testing-pyramid-strategy.md2.1 KB
- 参考文档references/unit-integration-testing.md2.7 KB
- 参考文档references/visual-regression.md2.2 KB
- 参考文档references/vulnerability-payloads.md1.3 KB
- 脚本scripts/analyze-test-results.js7.8 KB
- 脚本scripts/init-playwright.js6.5 KB
03 SKILL.md 正文
Web Testing Skill
Comprehensive web testing: unit, integration, E2E, load, security, visual regression, accessibility.
Quick Start
npx vitest run # Unit tests
npx playwright test # E2E tests
npx playwright test --ui # E2E with UI
k6 run load-test.js # Load tests
npx @axe-core/cli https://example.com # Accessibility
npx lighthouse https://example.com # Performance
Testing Strategy (Choose Your Model)
| Model | Structure | Best For |
|---|---|---|
| Pyramid | Unit 70% > Integration 20% > E2E 10% | Monoliths |
| Trophy | Integration-heavy | Modern SPAs |
| Honeycomb | Contract-centric | Microservices |
→ ./references/testing-pyramid-strategy.md
Reference Documentation
Core Testing
./references/unit-integration-testing.md- Vitest, browser mode, AAA./references/e2e-testing-playwright.md- Fixtures, sharding, selectors./references/playwright-component-testing.md- CT patterns (production-ready)./references/component-testing.md- React/Vue/Angular patterns
Test Infrastructure
./references/test-data-management.md- Factories, fixtures, seeding./references/database-testing.md- Testcontainers, transactions./references/ci-cd-testing-workflows.md- GitHub Actions, sharding./references/contract-testing.md- Pact, MSW patterns
Cross-Browser & Mobile
./references/cross-browser-checklist.md- Browser/device matrix./references/mobile-gesture-testing.md- Touch, swipe, orientation
Performance & Quality
./references/performance-core-web-vitals.md- LCP/CLS/INP, Lighthouse CI./references/visual-regression.md- Screenshot comparison./references/test-flakiness-mitigation.md- Stability strategies
Accessibility & Security
./references/accessibility-testing.md- WCAG, axe-core./references/security-testing-overview.md- OWASP Top 10./references/security-checklists.md- Auth, API, headers
API & Load
./references/api-testing.md- Supertest, GraphQL./references/load-testing-k6.md- k6 patterns
Checklists
./references/pre-release-checklist.md- Complete release checklist./references/functional-testing-checklist.md- Feature testing
Scripts
Initialize Playwright Project
node ./scripts/init-playwright.js [--ct] [--dir <path>]
Creates best-practice Playwright setup: config, fixtures, example tests.
Analyze Test Results
node ./scripts/analyze-test-results.js \
--playwright test-results/results.json \
--vitest coverage/vitest.json \
--output markdown
Parses Playwright/Vitest/JUnit results into unified summary.
CI/CD Integration
jobs:
test:
steps:
- run: npm run test:unit # Gate 1: Fast fail
- run: npm run test:e2e # Gate 2: After unit pass
- run: npm run test:a11y # Accessibility
- run: npx lhci autorun # Performance
04 同仓库更多 Skills
ck:web-frameworks
Build with Next.js (App Router, RSC, SSR, ISR), Turborepo monorepos. Use for React apps, server rendering, build optimization, caching strategies, shared dependencies.
ck:ui-styling
Style UIs with shadcn/ui components (Radix UI + Tailwind CSS). Use for accessible components, themes, dark mode, responsive layouts, design systems, color customization.
ck:threejs
Build 3D web apps with Three.js (WebGL/WebGPU). 556 searchable examples, 60 API classes, 20 use cases. Actions: create 3D scene, load model, add animation, implement physics, build VR/XR. Topics: GLTF loader, PBR materials, particle effects, shadows, post-processing, compute shaders, TSL. Integrations: WebGPU, physics engines, spatial audio.
ck:sequential-thinking
Apply step-by-step analysis for complex problems with revision capability. Use for multi-step reasoning, hypothesis verification, adaptive planning, problem decomposition, course correction.
ck:research
Research technical solutions, analyze architectures, gather requirements thoroughly. Use for technology evaluation, best practices research, solution design, scalability/security/maintainability analysis.
ck:plan
Plan implementations, design architectures, create technical roadmaps with detailed phases. Use for feature planning, system design, solution architecture, implementation strategy, phase documentation.