summaryrefslogtreecommitdiffhomepage
path: root/gui/playwright.config.ts
blob: 025675c831d12ef520ac42b28a233c621e5487fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
  testDir: './test/e2e',
  maxFailures: 2,
  timeout: 60000,
  expect: {
    toMatchSnapshot: {
      threshold: 0.1,
      maxDiffPixelRatio: 0.01,
    },
  },
  use: {
    screenshot: 'only-on-failure',
    video: 'retain-on-failure',
  },
};

export default config;