# Test Fixtures

This directory contains standardized test fixtures for ShowRunner.

## session_v1

A representative session using the MVP schema.

- `metadata.json`: Session metadata (display, duration, hotspots).
- `steps.json`: Structured steps (chapters) for the workflow.
- `events.ndjson`: Raw event log containing `marker`, `click`, etc.

### Schema: steps.json

```json
{
  "version": number,
  "steps": [
    {
      "id": "string",
      "start_ms": number,
      "end_ms": number,
      "title": "string",
      "body": "string",
      "tags": ["string"],
      "hotspot_ids": ["string"],
      "screenshot": {
        "path": "string",
        "timestamp_ms": number
      }
    }
  ]
}
```

### Usage in Tests

#### Rust (src-tauri)
Use `std::fs::read_to_string` to load these files from `../tests/fixtures/`.

#### Frontend (Vite/Vitest)
You can import them directly if configured, or use `fs` in node environment tests.
