component-fixtures

Creates isolated UI component fixtures for visual screenshot testing and inspection.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/aadorian/VSCode_Readme --skill component-fixtures-aadorian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-fixtures
Source: https://github.com/aadorian/VSCode_Readme/tree/main/education/engineering-tooling/github/copilot-skills/component-fixtures
Command: npx skills add https://github.com/aadorian/VSCode_Readme --skill component-fixtures-aadorian

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps engineers create reliable, isolated UI component fixtures for visual screenshot testing, reducing flakiness and making component behavior easier to inspect.

Core Features & Use Cases

  • Fixture Structure: Defines how fixture files should be organized and discovered in the component explorer.
  • Themed Rendering: Supports dark and light variants so components can be validated across themes.
  • Service Setup: Shows how to provide editor and workbench services, mocks, and dependency injection for realistic rendering.
  • CSS and Async Pitfalls: Explains how to handle shadow DOM scoping, deep selectors, reparenting, and asynchronous rendering safely.
  • Use Case: A developer can build a fixture for a chat panel, register the needed services, and capture stable screenshots for regression testing.

Quick Start

Create a themed fixture file that renders your component through the provided helpers, then run the component explorer and capture screenshots from the available fixture variants.

Frequently Asked Questions about component-fixtures

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create isolated UI component fixtures for visual screenshot testing?

To create isolated UI component fixtures for visual screenshot testing, you define a structured fixture file that renders your component through provided helpers, enabling stable inspection and regression validation.

What is the best way to render themed variants for component screenshot testing?

Rendering themed variants for component screenshot testing involves configuring your fixture files to support dark and light themes, ensuring components are validated visually across different visual contexts.

How does dependency injection work when setting up UI component fixtures?

Dependency injection in UI component fixtures works by providing editor and workbench services or mocks into the fixture setup, ensuring realistic component rendering and behavior during visual inspection.

Why does my component fixture flicker or leak styles during async rendering?

Component fixtures flicker or leak styles during async rendering due to unsafe reparenting and CSS scoping issues, requiring safe asynchronous rendering and shadow DOM-aware CSS handling to prevent leaks.

Does shadow DOM affect CSS scoping in UI component fixtures?

Shadow DOM affects CSS scoping in UI component fixtures by encapsulating styles, meaning you must use shadow DOM-aware CSS scoping and deep selectors to correctly style and isolate components.

Can I use component fixtures for visual regression testing of editor components?

You can use component fixtures for visual regression testing of editor components by registering necessary services, rendering stable variants, and capturing screenshots to detect visual regressions.