diff --git a/package.json b/package.json index 0582692867ea3..a78aa482a43ce 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/e2e/playwright.config.ts b/test/e2e/playwright.config.ts index 6aa0a543f0eb2..32793c65d75ec 100644 --- a/test/e2e/playwright.config.ts +++ b/test/e2e/playwright.config.ts @@ -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/, }, {