webui/playwright.doc-screenshot.config.ts
Djuri Baars 1fbddd0e8d
All checks were successful
/ build (push) Successful in 4m36s
/ check-changes (push) Successful in 5s
Dependency updates, clean up shared test data, create screenshot updater for README
2024-12-29 03:55:30 +01:00

27 lines
533 B
TypeScript

import { defineConfig } from '@playwright/test';
export default defineConfig({
use: {
locale: 'en-GB',
timezoneId: 'Europe/Amsterdam'
},
webServer: {
command: 'yarn build && yarn preview',
port: 4173
},
testDir: './tests/doc-screenshots',
outputDir: './test-results/screenshots',
projects: [
{
name: 'Light Mode',
use: {
viewport: { width: 1440, height: 900 },
colorScheme: 'light'
}
},
{
name: 'Dark Mode',
use: { viewport: { width: 1440, height: 900 }, colorScheme: 'dark' }
}
]
});