SPB Git

Repository Public

playwright.config.ts 1.0 KB 17 lines typescript

1import { defineConfig, devices } from '@playwright/test';23// Design review screenshots. Signed-in screens need Chromium (virtual passkey authenticator); the phone projects use4// the iPhone viewport, pixel ratio and touch input.5const phone = { ...devices['Desktop Chrome'], viewport: { width: 390, height: 844 }, deviceScaleFactor: 3, isMobile: true, hasTouch: true, userAgent: devices['iPhone 15'].userAgent };6const desktop = { ...devices['Desktop Chrome'], viewport: { width: 1440, height: 900 }, deviceScaleFactor: 2 };7export default defineConfig({8  testDir: '.', timeout: 300_000, workers: 1, reporter: 'list', expect: { timeout: 20_000 },9  use: { baseURL: process.env.SPD_E2E_BASE ?? 'http://localhost:5183' },10  projects: [11    { name: 'phone-light', use: { ...phone, colorScheme: 'light' } },12    { name: 'phone-dark', use: { ...phone, colorScheme: 'dark' } },13    { name: 'desktop-light', use: { ...desktop, colorScheme: 'light' } },14    { name: 'desktop-dark', use: { ...desktop, colorScheme: 'dark' } },15  ],16});17
Files main
Menu

Theme