Skip to content

A local-first personal finance app

775 B
Raw Blame
import { defineConfig } from '@playwright/test';

export default defineConfig({
  timeout: 60000, // 60 seconds
  retries: 1,
  testDir: 'e2e/',
  globalSetup: './e2e/global-setup.ts',
  reporter: process.env.CI
    ? [['list'], ['junit', { outputFile: 'e2e/test-results/junit.xml' }]]
    : undefined,
  outputDir: 'e2e/test-results/',
  snapshotPathTemplate:
    '{testDir}/__screenshots__/{testFilePath}/{arg}-{platform}{ext}',
  use: {
    userAgent: 'playwright',
    screenshot: 'on',
    browserName: 'chromium',
    trace: 'on-first-retry',
    ignoreHTTPSErrors: true,
  },
  expect: {
    // See desktop-client playwright.config.ts for the threshold rationale.
    toHaveScreenshot: { maxDiffPixels: 5, threshold: 0.05 },
    timeout: 60000, // 60 seconds
  },
});