mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
test(visual): adapt chrome args for increased reliability (#24291)
This commit is contained in:
parent
6906dfe70d
commit
5f78c3d5f4
1
.github/workflows/storybook-chromatic.yml
vendored
1
.github/workflows/storybook-chromatic.yml
vendored
@ -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 }}
|
||||
|
@ -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',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user