Skip to content

Commit

Permalink
cherry-pick(#33662): fix: dark-mode in UI Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Nov 19, 2024
1 parent a70a96a commit 120cdf6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/playwright-core/src/server/launchApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 120cdf6

Please sign in to comment.