chore(features): 🔧 Update TypeScript files in features

This commit is contained in:
Lilith 2026-01-18 09:21:15 -08:00
parent bab866e79f
commit 2e2a244e06
15 changed files with 28 additions and 46 deletions

View file

View file

@ -1,65 +1,47 @@
/**
* Playwright Docker Configuration
* Playwright Docker Configuration for Platform Admin
*
* Uses @lilith/playwright-e2e-docker config factory for consistency.
* Configuration for running E2E tests in Docker environment.
* Uses real database with seeded data instead of mocks.
*
* Usage:
* docker compose -f docker-compose.e2e.yml up --build --abort-on-container-exit
*/
import { createPlaywrightConfig } from '@lilith/playwright-e2e-docker'
import { defineConfig, devices } from '@playwright/test'
export default defineConfig({
export default createPlaywrightConfig({
// Test configuration
testDir: './',
testMatch: '**/*.e2e.ts',
testMatch: '**/*.docker.e2e.ts',
appName: 'platform-admin',
// Run tests serially in Docker for reliability
// Timeouts (Docker environments may need longer timeouts)
timeout: 60000,
expectTimeout: 15000,
actionTimeout: 15000,
navigationTimeout: 30000,
// Sequential execution for database state consistency
fullyParallel: false,
workers: 1,
// Fail the build on CI if test.only was accidentally left in
forbidOnly: true,
// Retry on failure
// Retries
retries: 2,
// Reporter configuration
reporter: [
['html', { outputFolder: 'test-results/html' }],
['json', { outputFile: 'test-results/results.json' }],
['list'],
],
// Device preset - chromium only for Docker
devicePreset: 'chromium-only',
// Timeout for each test (longer for Docker)
timeout: 60000,
// Base URL - uses Docker service name (REQUIRED - set by docker-compose)
baseURL: process.env.BASE_URL || 'http://platform-admin:5173',
// Timeout for expect assertions
expect: {
timeout: 15000,
},
// No webServer config - services are managed by docker-compose
use: {
// Base URL from environment (REQUIRED - fail fast if not set)
baseURL: process.env.BASE_URL!,
// Recording
video: 'retain-on-failure',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
// Collect trace on first retry
trace: 'on-first-retry',
// Screenshot on failure
screenshot: 'only-on-failure',
// Video on failure
video: 'retain-on-failure',
},
// Projects for different configurations
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
},
},
],
// Output directory for test artifacts
// Output directory
outputDir: 'test-results/artifacts',
})

View file

View file

View file

View file

View file

View file

View file

View file