-
Notifications
You must be signed in to change notification settings - Fork 0
Testing and Quality
The repository includes both CSS linting and Playwright-based behavioral tests.
npm run check:no-hex-colors
npm run lint:css
npm test
npm run test:chromium
npm run pack:dryRuns a guard script that fails if hex color literals are present in interactive-surface.css.
Runs Stylelint against interactive-surface.css.
Runs the Playwright suite using the project config.
Runs the Playwright suite in Chromium only. Useful for quick local verification.
Runs npm pack --dry-run using the local npm cache folder so the final published package contents can be inspected before release.
Current Playwright tests validate:
- standalone fallback style resolution
- keyboard focus visibility
-
aria-pressedactive styling -
aria-disablednon-interactivity - reduced-motion transform removal
- icon-only minimum target size
- index demo page rendering and control count
tests/interactive-surface.spec.tstests/example.spec.ts
This library is visual and state-driven. Browser-level validation is more useful than unit-testing implementation details because the value of the package is expressed through computed styles and real browser interaction behavior.
Run this sequence before publishing:
npm run check:no-hex-colors
npm run lint:css
npm test
npm run pack:dryReview the dry-run output and confirm that only intended public files are included:
index.jsinteractive-surface.cssREADME.mdCHANGELOG.mdLICENSEindex.html