fix: dark-mode in UI Mode (#33662)

This commit is contained in:
Max Schmitt 2024-11-19 10:29:05 +01:00 committed by GitHub
parent e047f6bc07
commit ecf6f27159
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,12 +43,12 @@ export async function launchApp(browserType: BrowserType, options: {
}
const context = await browserType.launchPersistentContext(serverSideCallMetadata(), '', {
channel: !options.persistentContextOptions?.executablePath ? findChromiumChannel(options.sdkLanguage) : undefined,
noDefaultViewport: true,
ignoreDefaultArgs: ['--enable-automation'],
colorScheme: 'no-override',
acceptDownloads: isUnderTest() ? 'accept' : 'internal-browser-default',
...options?.persistentContextOptions,
channel: options.persistentContextOptions?.channel ?? (!options.persistentContextOptions?.executablePath ? findChromiumChannel(options.sdkLanguage) : undefined),
noDefaultViewport: options.persistentContextOptions?.noDefaultViewport ?? true,
acceptDownloads: options?.persistentContextOptions?.acceptDownloads ?? (isUnderTest() ? 'accept' : 'internal-browser-default'),
colorScheme: options?.persistentContextOptions?.colorScheme ?? 'no-override',
args,
});
const [page] = context.pages();