Files
silverbullet-icalendar/playwright.config.ts
sstent 90ab92421a
Some checks failed
Build SilverBullet Plug / build (push) Has been cancelled
feat(test): implement Playwright E2E and Dockerized testing infrastructure
2026-02-21 13:19:37 -08:00

31 lines
767 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests/e2e',
timeout: 180000,
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: 'html',
use: {
baseURL: process.env.SB_URL || 'http://localhost:3000',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
headless: false,
},
projects: [
{
name: 'firefox',
use: {
...devices['Desktop Firefox'],
launchOptions: {
firefoxUserPrefs: {
'dom.securecontext.whitelist': 'http://localhost:3000,http://silverbullet-test:3000,http://mock-ics-server',
},
},
},
},
],
});