error-reporting
3 requirements and 7 scenarios in openspec/specs/error-reporting/spec.md. A scenario’s test is test('<scenario>') inside describe('<requirement>'), in Vitest or Playwright.
Showing a reference with an unexpected error
Section titled “Showing a reference with an unexpected error”Playwright: e2e/sign-in.spec.ts
| Scenario | Tests |
|---|---|
| A failed request shows a reference | Playwright e2e/sign-in.spec.ts |
| A page that fails to render shows a reference | Vitest src/components/ErrorView.test.tsx |
| The reference finds the failure in the logs | Vitest src/server/platform/client-log.server.test.ts |
Telling the user when the connection fails
Section titled “Telling the user when the connection fails”Playwright: e2e/connection.spec.ts
| Scenario | Tests |
|---|---|
| A request without a connection shows a connection message | Playwright e2e/connection.spec.ts |
| A page that cannot load without a connection shows a connection message | Playwright e2e/connection.spec.ts |
| A connection failure is logged as a warning | Vitest src/lib/client-log.test.tsx |
Showing that a page was not found
Section titled “Showing that a page was not found”Playwright: e2e/home.spec.ts
| Scenario | Tests |
|---|---|
| An unknown address shows that the page was not found | Playwright e2e/home.spec.ts |