Skip to content

Commit

Permalink
Try fixing it
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Jun 7, 2023
1 parent 26a07c9 commit 4762d75
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
"test:e2e:playwright": "playwright test --config test/e2e/playwright.config.ts",
"test:e2e:storybook": "playwright test --config test/storybook-playwright/playwright.config.ts",
"test:e2e:ci": "xvfb-run --auto-servernum --server-args=\"-screen 0 1280x960x24\" -- npm run test:e2e:playwright",
"test:e2e:docker": "docker run --rm -e WP_BASE_URL=http://host.docker.internal:8889 -v $(pwd):/work/ -w /work/ mcr.microsoft.com/playwright:v1.32.0-focal npm run test:e2e:ci",
"test:e2e:docker": "docker run --rm -e WP_BASE_URL=http://host.docker.internal:8889 -v $(pwd):/work/ -w /work/ mcr.microsoft.com/playwright:v1.32.0 npm run test:e2e:ci",
"test:e2e:watch": "npm run test:e2e -- --watch",
"test:performance": "wp-scripts test-e2e --config packages/e2e-tests/jest.performance.config.js",
"test:performance:debug": "wp-scripts --inspect-brk test-e2e --runInBand --no-cache --verbose --config packages/e2e-tests/jest.performance.config.js --puppeteer-devtools",
Expand Down
13 changes: 12 additions & 1 deletion test/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,18 @@ const config = defineConfig( {
projects: [
{
name: 'chromium',
use: { ...devices[ 'Desktop Chrome' ] },
use: {
...devices[ 'Desktop Chrome' ],
launchOptions: {
args: [
'--font-render-hinting=none',
'--disable-skia-runtime-opts',
'--disable-system-font-check',
'--disable-font-subpixel-positioning',
'--disable-lcd-text',
],
},
},
grepInvert: /-chromium/,
},
{
Expand Down

0 comments on commit 4762d75

Please sign in to comment.