d48cda4081
CI / Test (ubuntu-latest, Node 18.x, bun) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, npm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, pnpm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, yarn) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 20.x, bun) (push) Failing after 17m13s
CI / Test (ubuntu-latest, Node 20.x, npm) (push) Failing after 18m42s
CI / Test (ubuntu-latest, Node 20.x, pnpm) (push) Failing after 15m0s
CI / Test (ubuntu-latest, Node 20.x, yarn) (push) Failing after 49m44s
CI / Test (ubuntu-latest, Node 22.x, bun) (push) Failing after 51m55s
CI / Test (ubuntu-latest, Node 22.x, pnpm) (push) Failing after 21m57s
CI / Test (ubuntu-latest, Node 22.x, npm) (push) Failing after 37m39s
CI / Test (ubuntu-latest, Node 22.x, yarn) (push) Failing after 34m7s
CI / Validate Components (push) Failing after 37m15s
CI / Python Tests (push) Failing after 10m1s
CI / Security Scan (push) Failing after 10m1s
CI / Lint (push) Failing after 17m12s
CI / Coverage (push) Failing after 20m19s
CI / Test (macos-latest, Node 18.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, yarn) (push) Has been cancelled
68 lines
1.5 KiB
Markdown
68 lines
1.5 KiB
Markdown
---
|
|
paths:
|
|
- "**/*.css"
|
|
- "**/*.scss"
|
|
- "**/*.sass"
|
|
- "**/*.less"
|
|
- "**/*.html"
|
|
- "**/*.tsx"
|
|
- "**/*.jsx"
|
|
- "**/*.vue"
|
|
- "**/*.svelte"
|
|
---
|
|
> This file extends [common/testing.md](../common/testing.md) with web-specific testing content.
|
|
|
|
# Web Testing Rules
|
|
|
|
## Priority Order
|
|
|
|
### 1. Visual Regression
|
|
|
|
- Screenshot key breakpoints: 320, 768, 1024, 1440
|
|
- Test hero sections, scrollytelling sections, and meaningful states
|
|
- Use Playwright screenshots for visual-heavy work
|
|
- If both themes exist, test both
|
|
|
|
### 2. Accessibility
|
|
|
|
- Run automated accessibility checks
|
|
- Test keyboard navigation
|
|
- Verify reduced-motion behavior
|
|
- Verify color contrast
|
|
|
|
### 3. Performance
|
|
|
|
- Run Lighthouse or equivalent against meaningful pages
|
|
- Keep CWV targets from [performance.md](performance.md)
|
|
|
|
### 4. Cross-Browser
|
|
|
|
- Minimum: Chrome, Firefox, Safari
|
|
- Test scrolling, motion, and fallback behavior
|
|
|
|
### 5. Responsive
|
|
|
|
- Test 320, 375, 768, 1024, 1440, 1920
|
|
- Verify no overflow
|
|
- Verify touch interactions
|
|
|
|
## E2E Shape
|
|
|
|
```ts
|
|
import { test, expect } from '@playwright/test';
|
|
|
|
test('landing hero loads', async ({ page }) => {
|
|
await page.goto('/');
|
|
await expect(page.locator('h1')).toBeVisible();
|
|
});
|
|
```
|
|
|
|
- Avoid flaky timeout-based assertions
|
|
- Prefer deterministic waits
|
|
|
|
## Unit Tests
|
|
|
|
- Test utilities, data transforms, and custom hooks
|
|
- For highly visual components, visual regression often carries more signal than brittle markup assertions
|
|
- Visual regression supplements coverage targets; it does not replace them
|