0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-21 13:39:22 +01:00

test(visual): adapt chrome args for increased reliability (#24291)

This commit is contained in:
Thomas Obermüller 2024-08-12 16:30:09 +02:00 committed by GitHub
parent 6906dfe70d
commit 5f78c3d5f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 0 deletions

View File

@ -7,6 +7,7 @@ on:
- '.storybook/**'
- 'package.json'
- '.github/workflows/storybook-chromatic.yml'
- 'playwright.config.ts'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

View File

@ -47,6 +47,22 @@ export default defineConfig({
name: 'chromium',
use: {
...devices['Desktop Chrome'],
launchOptions: {
// https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md
args: [
'--headless=new',
'--single-process',
'--allow-pre-commit-input',
'--deterministic-mode',
'--disable-features=PaintHolding',
'--disable-partial-raster',
'--disable-skia-runtime-opt',
'--in-process-gpu',
'--use-gl=swiftshader',
'--force-color-profile=srgb',
],
},
},
},