mirror of
https://github.com/microsoft/playwright.git
synced 2024-11-28 09:23:42 +03:00
fix: dark-mode in UI Mode (#33662)
This commit is contained in:
parent
e047f6bc07
commit
ecf6f27159
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user