Files
supabase/e2e/kb/playwright.config.ts
Ali Waseem 99fd573d1a feat(kb): add unit test CI, search API tests, and Playwright smoke tests (#52151)
kb's unit tests weren't run in CI and there were no functional tests.
Adds a CI job for kb unit tests, unit tests for the search API, and a
bare-bones Playwright suite (`e2e/kb`) that runs against the kb Vercel
preview on PRs and against production daily.

Fixes DOCS-1506
2026-10-22 09:14:16 -06:00

21 lines
557 B
TypeScript

import { defineConfig } from '@playwright/test'
const IS_CI = !!process.env.CI
export default defineConfig({
testDir: './features',
testMatch: /.*\.spec\.ts/,
timeout: 30_000,
forbidOnly: IS_CI,
retries: IS_CI ? 2 : 0,
use: {
baseURL: process.env.PLAYWRIGHT_BASE_URL || 'https://supabase.com',
browserName: 'chromium',
headless: true,
screenshot: 'only-on-failure',
trace: 'retain-on-failure',
},
reporter: [['list'], ['html', { open: 'never', outputFolder: './playwright-report' }]],
outputDir: './test-results',
})