Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

page-visual-tests

Skill by ethereum

Sets up and maintains Playwright and Chromatic full-page visual tests for ethereum.org. Use it when adding pages to the visual suite or fixing flaky page snapshots.

  • Score 83
  • 6k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install page-visual-tests

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ethereum/ethereum-org-website /tmp/ethereum-org-website && mkdir -p ~/.claude/skills && cp -r /tmp/ethereum-org-website/.claude/skills/page-visual-tests ~/.claude/skills/page-visual-tests

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install page-visual-tests in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill covers the page visual tests Chromatic project in the ethereum.org repository. It does not cover Storybook Chromatic. The Playwright suite captures DOM archives per page and viewport, not PNGs. Chromatic then re-renders those archives in the cloud and diffs them, so a local pass only means the archives were produced. The skill lists the key files, such as playwright.visual.config.ts and tests/visual/pages.spec.ts, and the constraints behind them.

It explains the loading wait based on the data-slot="loading" attribute, the safeShuffle helper for random ordering, and the 1024 px desktop viewport. It also gives steps for adding a page, debugging flaky snapshots, handling pixel-limit errors, and fixing CI failures. It is written for developers and maintainers of the ethereum.org repo who work on the visual test suite.

Written from the project's SKILL.md and checked against it.

What it can do

  • Add a page to the visual suiteGuides adding an entry to the page list and checking the snapshot budget and page height.
  • Debug flaky snapshotsChecks for bespoke loaders, random ordering and missing USE_MOCK_DATA settings as causes.
  • Loading wait contractExplains that tests wait until no data-slot="loading" elements remain before snapshotting.
  • Stable random orderingExplains routing shuffles through safeShuffle so visual tests stay deterministic.
  • Viewport configurationExplains the three viewports and why the desktop viewport is set to 1024 px.
  • Local visual test loopLists the pnpm scripts for building, iterating on desktop and running the full visual sweep.
  • Pixel-limit checksDescribes measuring full-page height against Chromatic's 25M pixel snapshot cap.
  • CI troubleshootingCovers common causes of visual tests passing locally but failing in CI.

What you need

  • Chromatic project token (CHROMATIC_PAGES_TOKEN) for local publishing
  • Playwright, with the version matching the mcr.microsoft.com/playwright image in CI
  • Build and test with USE_MOCK_DATA=true and NEXT_PUBLIC_BUILD_LOCALES set
  • pnpm scripts from the ethereum.org repository

Try asking

  • Add the pricing page to the visual suite and check its height
  • My homepage snapshot keeps changing, help me find the cause
  • Check whether this page is too tall for the Chromatic pixel limit

Good to know

  • Covers only the page visual tests Chromatic project, not Storybook Chromatic, e2e or unit tests.
  • Desktop viewport is 1024 px because larger viewports overflow Chromatic's 25M pixel limit.
  • A local pnpm test:visual run does not show diffs, which happen only after upload to Chromatic.
  • Each page entry adds three snapshots, one per viewport, against Chromatic's budget.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/page-visual-tests/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB

Alternatives to page-visual-tests

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

page-visual-tests: common questions

Does this skill cover Storybook Chromatic?

No. The skill covers only the page visual tests project, and it says to skip Storybook Chromatic in .github/workflows/chromatic.yml.

Why is the desktop viewport 1024 px and not 1280 px?

Chromatic caps snapshots at 25M pixels. The tallest tested pages reach about 22.5k px, so 1280 px overflows while 1024 px fits.

Why does a local visual test pass but the diff still fail?

A local run only produces DOM archives. Chromatic re-renders and diffs them in the cloud after upload.

How do I install page-visual-tests?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is page-visual-tests free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is page-visual-tests safe to use?

It scores 83 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to page-visual-tests?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

page-visual-tests Install

Add to stack

Loading.