Files
art/playwright.config.ts
zeekay 41192860bc Initial commit: Lux Art gallery
- Full-screen artwork display with viewport crop
- Cyrus Pahlavi "Sans titre" (2003) from Sotheby's auction
- Animated details with auto-hide
- Click-to-zoom with pan/zoom controls
- Touch support for mobile (pinch-to-zoom, drag-to-pan)
- Mouse wheel zoom
- Lux logo with fade animations
- Comprehensive Playwright tests (31 passing)
- CI/CD with GitHub Actions
- Auto-deploy on test pass + build success
2025-10-10 12:12:12 -07:00

35 lines
753 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: process.env.CI ? 1 : undefined,
reporter: 'html',
use: {
baseURL: 'http://localhost:3000',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'Mobile Chrome',
use: { ...devices['Pixel 5'] },
},
{
name: 'Mobile Safari',
use: { ...devices['iPhone 12'] },
},
],
webServer: {
command: 'pnpm dev',
url: 'http://localhost:3000',
reuseExistingServer: true,
},
})