mirror of
https://github.com/luxstatic/art.git
synced 2026-10-30 15:07:42 +00:00
- 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
35 lines
753 B
TypeScript
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,
|
|
},
|
|
})
|