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.
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-testingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install playwright-viewer-testing in Claude Code
git clone --depth 1 https://github.com/sksat/orts /tmp/orts && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/orts/.claude/skills/playwright-viewer-testing ~/.gemini/antigravity-cli/skills/playwright-viewer-testingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install playwright-viewer-testing in Antigravity CLI
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
ANo 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 →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
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.
