Common Web Visual Testing
ASecurityMask the dynamic clock in visual tests. ```bash playwright-cli screenshot --mask="header .clock" ``` Or hide it only during the screenshot: ```js await page.locator('header .clock').evaluate(el => { el.style.opacity = '0'; }); ``` Then verify comparatively: 1. **Before**: capture `snapshot --aria` and screenshot from prod/main. 2. **After**: capture the same from the fixed branch. 3. Compare the diff and check neighboring header elements for layout shift or accidental masking. 4. Repeat at mo...
- 584 stars
- 0 votes
- 0 copies
- 3 views
- Added September 5, 2026
Works with
Security analysis
100/100Pro scans all 9 files and shows the line behind each finding
npx -y skills add HoangNguyen0403/agent-skills-standard --skill common-web-visual-testing --agent claude-codeAre you the author of Common Web Visual Testing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-web-visual-testing-e0018413)Mask the dynamic clock in visual tests.
```bash
playwright-cli screenshot --mask="header .clock"
```
Or hide it only during the screenshot:
```js
await page.locator('header .clock').evaluate(el => {
el.style.opacity = '0';
});
```
Then verify comparatively:
1. **Before**: capture `snapshot --aria` and screenshot from prod/main.
2. **After**: capture the same from the fixed branch.
3. Compare the diff and check neighboring header elements for layout shift or accidental masking.
4. Repeat at mobile `375px` and tablet `768px`; also check the loading state for CLS.
Prefer masking the clock rather than changing production behavior.
Files in this skill
- eval-1.baseline.md
- eval-1.with-skill.md
- eval-2.baseline.md
- eval-2.with-skill.md
- trigger-1.md
- trigger-2.md
- trigger-3.md
- trigger-4.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.