Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(chromium): disable sync to avoid crash in three dots menu (#38216)
Dmitry Gozman1abcdef015dc
diff --git a/packages/playwright-core/src/server/chromium/chromiumSwitches.ts b/packages/playwright-core/src/server/chromium/chromiumSwitches.tsindex ec4a332b90..ca98372dd5 100644--- a/packages/playwright-core/src/server/chromium/chromiumSwitches.ts+++ b/packages/playwright-core/src/server/chromium/chromiumSwitches.ts@@ -42,6 +42,8 @@ const disabledFeatures = (assistantMode?: boolean) => ['AutoDeElevate',// See https://github.com/microsoft/playwright/issues/37714'RenderDocument',+ // Prevents downloading optimization hints on startup.+ 'OptimizationHints',assistantMode ? 'AutomationControlled' : '',].filter(Boolean);@@ -85,4 +87,8 @@ export const chromiumSwitches = (assistantMode?: boolean, channel?: string) => [// This disables Chrome for Testing infobar that is visible in the persistent context.// The switch is ignored everywhere else, including Chromium/Chrome/Edge.'--disable-infobars',+ // Less annoying popups.+ '--disable-search-engine-choice-screen',+ // Prevents the "three dots" menu crash in IdentityManager::HasPrimaryAccount for ephemeral contexts.+ '--disable-sync',].filter(Boolean);