From 18697cfd8c2774e63ead25ed050ba69ae54c62f0 Mon Sep 17 00:00:00 2001 From: Vicky Koblinski Date: Tue, 12 Jul 2022 04:34:02 -0400 Subject: [PATCH] Not chromium: skip font-render-hinting option --- src/PlaywrightEnvironment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlaywrightEnvironment.ts b/src/PlaywrightEnvironment.ts index c6894e3..b55e200 100644 --- a/src/PlaywrightEnvironment.ts +++ b/src/PlaywrightEnvironment.ts @@ -54,7 +54,7 @@ const getBrowserPerProcess = async ( // https://github.com/mmarkelov/jest-playwright/issues/42#issuecomment-589170220 if (browserType !== CHROMIUM && launchOptions?.args) { launchOptions.args = launchOptions.args.filter( - (item: string) => item !== '--no-sandbox', + (item: string) => item !== '--no-sandbox' && !item.startsWith("--font-render-hinting="), ) }