Files
actual/packages/desktop-client/playwright.config.ts
Michael Clark 3fafb898d0 🧪 Fix flaky VRT test and prevent downloading translations where not needed (#6429)
* this is a test

* [autofix.ci] apply automated fixes

* dot reporter for line by line

* [autofix.ci] apply automated fixes

* ok...

* list reporter

* Update VRT screenshots

Auto-generated by VRT workflow

PR: #6429

* fix couple of issues

* Revert "Update VRT screenshots"

This reverts commit 0124b13475.

* putting text change back

* release notes

* skipping translations on the desktop app

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-16 23:03:09 +00:00

37 lines
934 B
TypeScript

import path from 'node:path';
import { defineConfig } from '@playwright/test';
export default defineConfig({
timeout: 60000, // 60 seconds
retries: 1,
fullyParallel: true,
workers: process.env.CI ? 1 : undefined,
testDir: 'e2e/',
reporter: process.env.CI
? [['blob'], ['list']]
: [['html', { open: 'never' }]],
use: {
userAgent: 'playwright',
screenshot: 'on',
browserName: 'chromium',
baseURL: process.env.E2E_START_URL ?? 'http://localhost:3001',
trace: 'on-first-retry',
ignoreHTTPSErrors: true,
},
expect: {
toHaveScreenshot: { maxDiffPixels: 5 },
},
webServer: process.env.E2E_START_URL
? undefined
: {
cwd: path.join(__dirname, '..', '..'),
command: 'yarn start',
url: 'http://localhost:3001',
reuseExistingServer: !process.env.CI,
stdout: 'ignore',
stderr: 'pipe',
ignoreHTTPSErrors: true,
},
});