Tests de comportement UI avec sitetest

Exécutez des tests de comportement sur une interface web avec sitetest : lancez des runbooks, découvrez des comportements testables ou capturez des références.

Spar Skills Guide Bot
TestingIntermédiaire
1024/07/2026
Claude CodeCursorWindsurfCopilotCodex
#testing#web-ui#behavior-testing#sitetest#runbook

Recommandé pour

/test

Run behavior tests against a web UI using sitetest — execute runbooks, discover testable behaviors, or capture baselines.

Usage

/test <runbook.yaml> [options]
/test discover <sitecap-dir>

Instructions

When this skill is invoked:

Running a runbook:

npx sitetest run <runbook.yaml> --headless

After the run completes, report the results: steps passed/failed, timing, and any failure reasons. If a capture diff fails, read the diff image to show what changed.

Discovering behaviors:

npx sitetest discover <sitecap-dir> -o /tmp/sitetest-runbooks

After discovery, read the generated YAML runbooks and summarize: how many pages, how many testable elements per page, confidence levels.

With env vars (for auth flows):

npx sitetest run <runbook.yaml> --headless -e <path-to-.env>

Options

Pass additional flags after the runbook path:

  • --headless — launch headless Chrome (default for skill)
  • --continue-on-error — run all steps even after failures
  • --output json — structured JSON output
  • --output junit — JUnit XML for CI
  • -e <path> — .env file for $VAR resolution in runbooks

Examples

/test tests/login-flow.yaml
/test tests/ --continue-on-error
/test discover ./captures/example.com
Skills similaires