callumalpass_tasknotes/playwright.config.ts
callumalpass b4a1c63ed8 chore: add E2E test scripts and Playwright configuration
- Add e2e-setup.sh for downloading and unpacking Obsidian AppImage
- Add e2e-launch.sh for launching Obsidian with test vault
- Add playwright.config.ts with Electron test configuration
- Add initial E2E test structure in e2e/ directory
2025-12-31 09:34:09 +11:00

22 lines
629 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e',
fullyParallel: false, // Run tests sequentially - Obsidian is a single instance
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
workers: 1, // Single worker - Obsidian can only run one instance
reporter: 'list',
timeout: 60000, // 60 seconds per test
use: {
trace: 'retain-on-failure',
video: 'retain-on-failure',
screenshot: 'on', // Capture screenshots for all tests
},
projects: [
{
name: 'obsidian',
use: { ...devices['Desktop Chrome'] },
},
],
});