XTend Documentation
Enable dark mode

XTend Developer Center

Build with XTend today

Visual Snapshot Automation

Create deterministic screenshots for themes, viewports and components.

What it covers

Snapshot automation materializes defined fixture states, waits for stable custom elements, and writes comparable local artifacts. Theme, viewport, motion, and state are part of snapshot identity; network and real-time data remain excluded.

Public building blocks

  • tests/browser/visual_snapshot_automation_suite.js verifies the automation contract.
  • tests/browser/visual_snapshots_suite.js runs comparisons.
  • .xtend-test-results/ contains reports and generated evidence, not UI source of truth.
  • The local runner publishes the stable xtend.epic12.visual-snapshot-runner.v1 contract.

Verify contract and runner together:

node scripts/run_xtend_tests.js visual-snapshot-automation visual-snapshots --json

The runner can also be verified in isolation:

node scripts/run_xtend_tests.js visual-snapshots --json

A timeout usually indicates an undefined element, active animation, or missing fixture readiness. Stabilize that state explicitly. Do not mask dynamic regions that remain visible and meaningful to users.

Next steps

(c) 2026 - CCS Networks | Powered by XRouter PHP Extension