Skip to content

Commit

Permalink
test(visual): adapt chrome args for increased reliability (#24291)
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr authored Aug 12, 2024
1 parent 6906dfe commit 5f78c3d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/storybook-chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
16 changes: 16 additions & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
},
},
},

Expand Down

0 comments on commit 5f78c3d

Please sign in to comment.