webui/playwright.screenshot.config.ts
Djuri Baars 68c247f3cc
All checks were successful
/ check-changes (push) Successful in 7s
/ build (push) Successful in 3m57s
Fix screen selector UI, add screenshot maker
2024-12-12 19:50:36 +01:00

36 lines
693 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
use: {
locale: 'en-GB',
timezoneId: 'Europe/Amsterdam'
},
webServer: {
command: 'npm run build && npm run preview',
port: 4173
},
testDir: './tests/screenshots',
outputDir: './test-results/screenshots',
projects: [
{
name: 'MacBook Air 13 inch',
use: {
viewport: { width: 1440, height: 900 }
}
},
{
name: 'iPhone 14 Pro',
use: { ...devices['iPhone 14 Pro'] }
},
{
name: 'iPhone 15 Pro Landscape',
use: { ...devices['iPhone 15 Pro Landscape'] }
},
{
name: 'MacBook Pro 14 inch',
use: {
viewport: { width: 1512, height: 982 }
}
}
]
});