---
url: https://kit.kambium.net/docs/e2e-tests.md
description: >-
  Run Playwright tests against a disposable app and provider simulator with
  Kambium Kit.
---

# E2E tests

Use Playwright to verify flows through the dashboard, authentication and
provider simulators. The generated app's `tests/e2e/app.spec.ts` checks email
sign-in and exercises the Example Slack bot through the [Slack simulator](https://kit.kambium.net/docs/slack-simulator.md).

## Run the generated suite

From the app directory, run:

```sh
npm run test:e2e
```

The suite starts its own app, Supabase, Redis, Mailpit and Slack simulator and
resets test state between cases. It uses the same
[local runtime requirements](https://kit.kambium.net/docs/local-runtime.md#local-runtime-requirements).

::: details First Playwright run on this machine

Install Chromium's headless shell with `npx playwright install chromium --only-shell`.
See [Playwright's browser setup](https://playwright.dev/docs/browsers#install-system-dependencies)
if the machine is missing system libraries.

:::

## Add your own scenarios

Use `signedInTest` from `createKambiumTest` when a case needs a user session.
Use `engineTest` when it also needs a workspace and an engine. Keep the
generated Playwright configuration at one worker. The testing package README
describes [fixture options and simulators](https://github.com/MartinMalinda/kambium/blob/main/packages/testing/README.md).

Use [integration tests](https://kit.kambium.net/docs/integration-tests.md) to check server routes and
engine registration in a Node test process.
