Skip to content

user-guide

4 requirements and 24 scenarios in openspec/specs/user-guide/spec.md. A scenario’s test is test('<scenario>') inside describe('<requirement>'), in Vitest or Playwright.

No Playwright test: the check reads committed files in Node and runs no app; its scenarios are covered by Vitest on the check’s functions.

Scenario Tests
A page with current hashes Vitest scripts/guide/check.test.ts
A changed requirement Vitest scripts/guide/check.test.ts
A hash read as a number Vitest scripts/guide/check.test.ts
A citation an active change makes obsolete Vitest scripts/guide/check.test.ts
A stale citation names the hash to cite Vitest scripts/guide/check.test.ts
Whitespace alone is not a change Vitest scripts/guide/check.test.ts
A renamed requirement Vitest scripts/guide/check.test.ts
A hash from an active change Vitest scripts/guide/check.test.ts

User-facing requirements covered by the guide

Section titled “User-facing requirements covered by the guide”

No Playwright test: the check reads committed files in Node and runs no app; its scenarios are covered by Vitest on the check’s functions.

Scenario Tests
An uncovered requirement Vitest scripts/guide/check.test.ts
A requirement left out with a reason Vitest scripts/guide/check.test.ts
A left-out requirement without a reason Vitest scripts/guide/check.test.ts
A left-out requirement that no longer exists Vitest scripts/guide/check.test.ts
Cited and left out Vitest scripts/guide/check.test.ts
A requirement added by an active change Vitest scripts/guide/check.test.ts
A requirement renamed by an active change Vitest scripts/guide/check.test.ts
A requirement removed by an active change Vitest scripts/guide/check.test.ts

UI names in the guide come from the messages

Section titled “UI names in the guide come from the messages”

No Playwright test: the name is resolved at the site’s build time; the resolver is a pure function covered by Vitest.

Scenario Tests
A button name in Finnish Vitest docs/guide/lib/ui-text.test.ts
An unknown key Vitest docs/guide/lib/ui-text.test.ts
A message with a variable Vitest docs/guide/lib/ui-text.test.ts
An unknown key in the drift check Vitest scripts/guide/check.test.ts

No Playwright test: the screenshot is resolved at the site’s build time, and the capture scripts are themselves Playwright runs; the resolver and the duplicate check are pure functions covered by Vitest.

Scenario Tests
A captured screenshot Vitest docs/guide/lib/shots.test.ts
A missing screenshot in CI Vitest docs/guide/lib/shots.test.ts
A missing screenshot locally Vitest docs/guide/lib/shots.test.ts
The same id saved twice Vitest docs/guide/lib/shots.test.ts