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

playwright-viewer-testing

Skill by sksat

Guides Playwright end-to-end tests for the orts viewer. It covers checking chart data through DuckDB queries, canvas pixel analysis, and 3D scene checks. It is for developers testing the orts viewer.

  • Score 58
  • 30 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install playwright-viewer-testing

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sksat/orts /tmp/orts && mkdir -p ~/.claude/skills && cp -r /tmp/orts/.claude/skills/playwright-viewer-testing ~/.claude/skills/playwright-viewer-testing

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

Step-by-step: install playwright-viewer-testing in Claude Code

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

About

playwright-viewer-testing is a SKILL.md guide for writing end-to-end tests with Playwright against the orts viewer, a chart app built on @orts/uneri, which stores chart data in DuckDB-wasm tables. It recommends querying DuckDB directly for precise data checks instead of reading uPlot instances or React state, since uPlot refs are not reachable from the DOM and React fiber traversal is fragile. It also covers canvas pixel scans for 2D charts.

For the WebGL 3D scene, the guide prefers dev-only debug hooks that read the rendered Three.js scene graph rather than pixel tests. It lists pitfalls such as Chrome readback warnings, color thresholds, axis label margins, and readPixels returning zeros without preserveDrawingBuffer. It also explains how a shared tMax parameter in buildDerivedQuery() keeps multi-satellite series aligned without NaN gaps. It is aimed at developers testing the orts viewer.

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

What it can do

  • DuckDB query verificationChecks chart data by querying DuckDB tables directly instead of reading uPlot or React state.
  • Canvas pixel analysisScans uPlot 2D canvases for series colors to check coverage and gaps.
  • 3D scene graph checksMeasures the rendered Three.js scene through dev-only debug hooks rather than pixels.
  • Multi-satellite NaN alignment checksVerifies that both series have equal coverage and no alternating single-color columns.
  • Common pitfalls listLists known issues such as color thresholds, axis margins and readback warnings.

What you need

  • Playwright
  • Chrome, as the guide mentions Chrome readback warnings
  • The orts viewer project

Try asking

  • Write a Playwright test that checks the point count shown in the orts viewer status bar.
  • Help me scan a uPlot canvas to confirm both satellite series have similar coverage.
  • How do I verify the Three.js scene in the orts viewer without using pixel tests?

Good to know

  • The DuckDB connection is not exposed on window, so precise checks need a dev endpoint or test-build hook.
  • Debug hooks are registered behind IS_DEV.
  • gl.readPixels on the 3D canvas returns zeros unless preserveDrawingBuffer is true.
  • The guide is written for the orts viewer and its specific colors and chart layout.

Security check

A

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

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

Alternatives to playwright-viewer-testing

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

playwright-viewer-testing: common questions

Can this skill query DuckDB data in Playwright tests?

The guide recommends querying DuckDB directly for precise checks. It notes the connection is not exposed on window, so a dev-mode endpoint or test-build hook is needed.

How does it test the 3D view?

It recommends dev-only debug hooks that read the Three.js scene graph, such as window.__debug_get_sat_world_quat, instead of pixel tests.

What should I watch for in canvas pixel tests?

The guide says to sample actual pixel colors before writing detection logic and to skip the first 30 columns, which hold Y-axis labels.

How do I install playwright-viewer-testing?

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

Is playwright-viewer-testing free?

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

Is playwright-viewer-testing safe to use?

It scores 58 of 100. Grades: maintenance A, licence A, quality C. 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 playwright-viewer-testing?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

playwright-viewer-testing Install

Add to stack

Loading.