Files
picpeak/playwright.config.ts
T
2026-07-03 12:30:08 +02:00

22 lines
569 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
import dotenv from 'dotenv';
// Load environment variables from .env file
dotenv.config();
export default defineConfig({
testDir: 'tests/e2e',
timeout: 60_000,
retries: 0,
use: {
baseURL: process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:3000',
headless: true,
viewport: { width: 1280, height: 800 },
ignoreHTTPSErrors: true,
},
projects: [
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
{ name: 'mobile-chrome', use: { ...devices['Pixel 5'] } },
],
});