mirror of
https://github.com/icereed/paperless-gpt.git
synced 2025-03-12 21:08:00 -05:00
37 lines
886 B
TypeScript
37 lines
886 B
TypeScript
|
import { defineConfig, devices } from '@playwright/test';
|
||
|
import dotenv from 'dotenv';
|
||
|
|
||
|
// Load test environment variables
|
||
|
dotenv.config({ path: '.env.test' });
|
||
|
|
||
|
export default defineConfig({
|
||
|
testDir: './e2e',
|
||
|
timeout: 120000, // Increased timeout for container startup
|
||
|
expect: {
|
||
|
timeout: 10000,
|
||
|
},
|
||
|
globalSetup: './e2e/setup/global-setup.ts',
|
||
|
fullyParallel: false,
|
||
|
forbidOnly: !!process.env.CI,
|
||
|
retries: process.env.CI ? 2 : 0,
|
||
|
workers: 1,
|
||
|
reporter: 'html',
|
||
|
use: {
|
||
|
screenshot: 'on',
|
||
|
baseURL: process.env.PAPERLESS_GPT_URL || 'http://localhost:8080',
|
||
|
trace: 'retain-on-failure',
|
||
|
video: 'retain-on-failure',
|
||
|
},
|
||
|
projects: [
|
||
|
{
|
||
|
name: 'chromium',
|
||
|
use: {
|
||
|
...devices['Desktop Chrome'],
|
||
|
viewport: { width: 1280, height: 720 },
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
outputDir: 'test-results',
|
||
|
preserveOutput: 'failures-only',
|
||
|
});
|