Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

977 B
Raw Blame
// The agent-style browser test (e2e/agent.e2e.ts): Chromium against a running dev stack with the seeded demo data.
// Run it: docs/commands.md, "Agent-style browser test". CI: the `agent ui` job of tests.yml.
import { defineConfig } from '@playwright/test'

export default defineConfig({
  testDir: 'e2e',
  // One page after the other: the tests change the same demo calls and put them back.
  workers: 1,
  fullyParallel: false,
  retries: process.env.CI ? 1 : 0,
  timeout: 60_000,
  reporter: process.env.CI ? [['list'], ['html', { open: 'never' }]] : 'list',
  use: {
    baseURL: process.env.E2E_URL ?? 'http://localhost:5173',
    ignoreHTTPSErrors: true,
    viewport: { width: 1440, height: 900 },
    trace: 'retain-on-failure',
  },
  projects: [
    { name: 'sign-in', testMatch: 'sign-in.setup.ts' },
    {
      name: 'agent',
      testMatch: '*.e2e.ts',
      dependencies: ['sign-in'],
      use: { storageState: 'test-results/session.json' },
    },
  ],
})