# Testing

Workspace unit and source-guard tests run with Vitest:

```bash
npm --workspace @qentrah/workspace test
```

Browser flows run with Playwright:

```bash
npm --workspace @qentrah/workspace run test:e2e
```

For a focused smoke check across the main authenticated product flows, run:

```bash
npm --workspace @qentrah/workspace run test:e2e -- e2e/workspace-all-flows.spec.ts
```

The all-flow smoke spec signs in a fresh owner, creates representative
workspace data, and opens dashboard, projects, properties, clients, calendar,
activity, integrations, and organization settings for a ready organization.