component-fixtures

Create and manage UI component fixtures for visual screenshot testing in VS Code.

189k|41.5k|Updated Sep 3, 2015
One-click install
npx skills add https://github.com/microsoft/vscode --skill component-fixtures
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-fixtures
Source: https://github.com/microsoft/vscode/tree/main/.github/skills/component-fixtures
Command: npx skills add https://github.com/microsoft/vscode --skill component-fixtures

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of creating and updating UI component fixtures, ensuring reliable visual testing and robust component design.

Core Features & Use Cases

  • Visual Screenshot Testing: Renders isolated UI components for automated visual verification.
  • Fixture Development: Provides a structured approach to defining and managing component fixtures.
  • Use Case: When developing a new button component, use this Skill to create a fixture that renders the button in various states (default, hover, disabled) for screenshot testing.

Quick Start

Use the component-fixtures skill to list all available fixtures.

Frequently Asked Questions about component-fixtures

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

FAQPage Schema
How do I create UI component fixtures for visual screenshot testing in VS Code?

To create UI component fixtures for visual screenshot testing, you define a structured fixture file that renders your component in isolated states. The Skill manages theming, service setup, and CSS scoping to ensure reliable visual verification.

What is component fixture development and when do I need it?

Component fixture development is the process of defining isolated UI component states for automated visual verification. You need it when designing new components to ensure reliable rendering across various states like default, hover, or disabled.

Do I need a Vite dev server to run component fixtures?

Yes, you need a Vite dev server integration to execute component fixtures. The Skill relies on specific command-line tools and the Vite dev server to render isolated components and perform visual screenshot testing.

How does asynchronous rendering work with isolated UI component fixtures?

Asynchronous rendering for isolated UI component fixtures ensures components are fully loaded before visual verification. This handles dynamic data fetching within your fixture structure to capture accurate screenshot tests.

What's the best way to manage CSS scoping and theming for UI component fixtures?

The best way to manage CSS scoping and theming for UI component fixtures is to use a structured fixture file approach. This isolates component styles and applies specific themes for accurate visual screenshot testing.

Why does my visual screenshot testing fail for disabled or hover component states?

Visual screenshot testing fails for component states when fixture file structure or asynchronous rendering is incomplete. Ensure your fixture properly defines state variations and service setup for isolated component verification.