Skip to content

Commit

Permalink
fix: add --disable-search-engine-choice-screen to default arguments (#…
Browse files Browse the repository at this point in the history
…8248)

<!--
Thank you for your contribution.

Before making a PR, please read our contributing guidelines at

https://github.com/DevExpress/testcafe/blob/master/CONTRIBUTING.md#code-contribution

We recommend creating a *draft* PR, so that you can mark it as 'ready
for review' when you are done.
-->

## Purpose
_Describe the problem you want to address or the feature you want to
implement._

## Approach
_Describe how your changes address the issue or implement the desired
functionality in as much detail as possible._

## References
close #8240 

## Pre-Merge TODO
- [ ] Write tests for your proposed changes
- [ ] Make sure that existing tests do not fail
  • Loading branch information
PavelMor25 authored Aug 2, 2024
1 parent a9f9764 commit a28cf78
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export const CONTAINERIZED_CHROME_FLAGS = ['--no-sandbox', '--disable-dev-shm-us

export function buildChromeArgs ({ config, cdpPort, platformArgs, tempProfileDir, isContainerized, isNativeAutomation, browserName }) {
const headlessMode = ['chrome', 'chromium'].includes(browserName) ? '--headless=new' : '--headless';
const defaultArgs = ['--disable-search-engine-choice-screen'];

let chromeArgs = []
.concat(
Expand All @@ -11,7 +12,8 @@ export function buildChromeArgs ({ config, cdpPort, platformArgs, tempProfileDir
config.userArgs ? [config.userArgs] : [],
// NOTE: we need to prevent new window blocking for multiple windows in Native Automation
isNativeAutomation ? ['--disable-popup-blocking'] : [],
platformArgs ? [platformArgs] : []
platformArgs ? [platformArgs] : [],
defaultArgs
)
.join(' ');

Expand Down

0 comments on commit a28cf78

Please sign in to comment.