mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
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
21 lines
557 B
TypeScript
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',
|
|
})
|