mirror of
https://github.com/callumalpass/tasknotes.git
synced 2026-07-22 12:50:26 +00:00
- 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
22 lines
629 B
TypeScript
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'] },
|
|
},
|
|
],
|
|
});
|