Skip to content

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.

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.

First Playwright run on this machine

Install Chromium's headless shell with npx playwright install chromium --only-shell. See Playwright's browser setup 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.

Use integration tests to check server routes and engine registration in a Node test process.