mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 23:01:23 +02:00
Add 22 E2E tests across 5 test suites covering auth, calendar views, settings, event CRUD, and calendar management. Tests that require the calendar backend gracefully skip when it's not running. Also fixes: hooks.server.ts env fallbacks, ThrottlerGuard DI error, and auth metrics service TypeScript error. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
1,014 B
TypeScript
39 lines
1,014 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: 1,
|
|
reporter: process.env.CI ? [['github'], ['html', { open: 'never' }]] : [['html']],
|
|
|
|
use: {
|
|
baseURL: 'http://localhost:5179',
|
|
trace: 'on-first-retry',
|
|
screenshot: 'only-on-failure',
|
|
video: 'retain-on-failure',
|
|
actionTimeout: 10000,
|
|
navigationTimeout: 30000,
|
|
},
|
|
|
|
timeout: 60000,
|
|
expect: { timeout: 5000 },
|
|
|
|
projects: process.env.CI
|
|
? [
|
|
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
|
|
{ name: 'firefox', use: { ...devices['Desktop Firefox'] } },
|
|
{ name: 'webkit', use: { ...devices['Desktop Safari'] } },
|
|
]
|
|
: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
|
|
|
|
webServer: {
|
|
command: 'pnpm run build && pnpm run preview --port 5179',
|
|
port: 5179,
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 120000,
|
|
},
|
|
|
|
outputDir: 'test-results/',
|
|
});
|