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.

542 B
Raw Blame
// Signs in once (the dev server does it on the first page load, LINEDESK_DEV_AUTO_SIGN_IN) and keeps the session for
// the tests: a sign-in per test would run into the sign-in rate limit.
import { expect, test as setup } from '@playwright/test'

export const SESSION = 'test-results/session.json'

setup('sign in', async ({ page }) => {
  await page.goto('/#calls')
  await expect(page.getByRole('navigation').getByRole('link', { name: /^Inbox/ })).toBeVisible({ timeout: 30_000 })
  await page.context().storageState({ path: SESSION })
})