Loading...
Loading...
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.
npx skill4agent add mrgoonie/claudekit-skills web-testingnpx 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| Layer | Ratio | Framework | Speed |
|---|---|---|---|
| Unit | 70% | Vitest/Jest | <50ms |
| Integration | 20% | Vitest + fixtures | 100-500ms |
| E2E | 10% | Playwright | 5-30s |
./references/unit-integration-testing.md./references/e2e-testing-playwright.md./references/component-testing.md./references/testing-pyramid-strategy.md./references/cross-browser-checklist.md./references/mobile-gesture-testing.md./references/shadow-dom-testing.md./references/interactive-testing-patterns.md./references/functional-testing-checklist.md./references/performance-core-web-vitals.md./references/visual-regression.md./references/test-flakiness-mitigation.md./references/accessibility-testing.md./references/security-testing-overview.md./references/security-checklists.md./references/vulnerability-payloads.md./references/api-testing.md./references/load-testing-k6.md./references/pre-release-checklist.mdjobs:
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