Files
actual/packages/desktop-electron/playwright.config.ts
Michael Clark 1d6b70d160 :electron: Playwright test fixture (#4752)
* playwright test fixture

* release notes

* update snapshots

* test

* again

* same timeout as web client

* faster

* srsly

* Update VRT

* update test

* get rid of this test for now

* updating update-vrt

* speed it up a bit

* same timeout as desktop-client

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-04-06 18:56:08 +01:00

24 lines
600 B
TypeScript

import { defineConfig } from '@playwright/test';
// eslint-disable-next-line import/no-default-export
export default defineConfig({
timeout: 60000, // 60 seconds
retries: 1,
testDir: 'e2e/',
reporter: 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: {
toHaveScreenshot: { maxDiffPixels: 5 },
timeout: 60000, // 60 seconds
},
});