nvidia/elements · Archived

authoring-tests

Write and run automated tests for Elements components including unit, accessibility, visual, SSR, and lighthouse tests.

First seen Aug 17, 2026

Installation

$ npx skills add nvidia/elements --skill authoring-tests

Summary

  • Write and run automated tests for Elements components including unit, accessibility, visual, SSR, and lighthouse tests.
  • Use this skill whenever the user wants to write, create, update, or debug test files (.test.ts, .test.axe.ts, .test.visual.ts, .test.ssr.ts, .test.lighthouse.ts).
  • Also trigger when the user asks about createFixture, removeFixture, elementIsStable, emulateClick, untilEvent, runAxe, visual baselines, theme testing, or test structure patterns like describe block naming.

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from nvidia/elements · top by installs.

npx skills add nvidia/elements

Browse all from nvidia/elements

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 85
License LICENSE
Default branch main
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,093 B
  • docs SUMMARY.md 512 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Authoring Tests

You MUST review @projects/site/src/docs/internal/guidelines/testing.md before making any testing changes.

When to Use This Skill

  • Creating new test files for components (.test.ts, .test.axe.ts, .test.visual.ts, .test.ssr.ts, .test.lighthouse.ts)
  • Debugging test failures or updating existing tests
  • Understanding testing utilities from @internals/testing
  • Setting up test configurations or HTML templates
  • Writing tests that follow project patterns

Test Type Guidelines

Read the specific guideline based on the test type you're working with:

  • Unit Tests (.test.ts): Read [testing-unit.md](/projects/site/src/docs/internal/guidelines/testing-unit.md) - covers createFixture, elementIsStable, event testing
  • Accessibility Tests (.test.axe.ts): Read [testing-accessibility.md](/projects/site/src/docs/internal/guidelines/testing-accessibility.md) - covers axe-core usage, WCAG compliance
  • Visual Tests (.test.visual.ts): Read [testing-visual.md](/projects/site/src/docs/internal/guidelines/testing-visual.md) - covers Playwright screenshots, theme testing
  • SSR Tests (.test.ssr.ts): Read [testing-ssr.md](/projects/site/src/docs/internal/guidelines/testing-ssr.md) - covers server-side rendering compatibility
  • Lighthouse Tests (.test.lighthouse.ts): Read [testing-lighthouse.md](/projects/site/src/docs/internal/guidelines/testing-lighthouse.md) - covers performance, accessibility scores

Key Principles

  1. Test Isolation: Each test should be independent with proper setup/teardown using createFixture and removeFixture
  2. Wait for Stability: Always use elementIsStable() before making assertions on Lit components
  3. Comprehensive Coverage: All new components require unit, accessibility, and visual tests at minimum
  4. Real User Events: Use emulateClick and untilEvent for realistic event testing
  5. Theme Testing: Visual tests should cover both light and dark themes

References

  • [Testing Overview](/projects/site/src/docs/internal/guidelines/testing.md)
  • [Unit Testing](/projects/site/src/docs/internal/guidelines/testing-unit.md)
  • [Accessibility Testing](/projects/site/src/docs/internal/guidelines/testing-accessibility.md)
  • [Lighthouse Testing](/projects/site/src/docs/internal/guidelines/testing-lighthouse.md)
  • [SSR Testing](/projects/site/src/docs/internal/guidelines/testing-ssr.md)
  • [Visual Testing](/projects/site/src/docs/internal/guidelines/testing-visual.md)
  • [Vite Internals](/projects/internals/vite/README.md)