Skip to content

feat(platform-web): expose ignoreDefaultArgs in browser config#119

Merged
V3RON merged 3 commits into
callstackincubator:mainfrom
nachooya:feat/web-ignore-default-args
May 13, 2026
Merged

feat(platform-web): expose ignoreDefaultArgs in browser config#119
V3RON merged 3 commits into
callstackincubator:mainfrom
nachooya:feat/web-ignore-default-args

Conversation

@nachooya
Copy link
Copy Markdown

Summary

  • Adds ignoreDefaultArgs to WebBrowserConfigSchema, accepting either boolean or string[] to match Playwright's LaunchOptions.ignoreDefaultArgs.
  • Forwards the value into browserType.launch() in the web runner so users can disable Playwright's defaults (e.g. drop --enable-automation) or strip individual default args without having to fork the runner.

Motivation

Some test setups need to disable specific Playwright defaults (for example to keep --enable-automation off so DRM / EME stacks behave the same way they do in a real browser, or to opt out of Playwright's headless-shell args). Without this option the only workaround is to wrap the platform and re-implement the launch flow.

Test plan

  • nx run @react-native-harness/platform-web:typecheck passes
  • Run a web target with ignoreDefaultArgs: true and confirm the browser launches without Playwright's defaults
  • Run a web target with ignoreDefaultArgs: ['--enable-automation'] and confirm only that flag is stripped

Forward Playwright's launch option through WebBrowserConfigSchema so
users can disable or override Playwright's default Chromium/Firefox/WebKit
launch arguments (e.g. removing --enable-automation, or providing a custom
arg set) without having to fork the runner.

Accepts either a boolean or a string[] of default args to ignore, matching
Playwright's LaunchOptions.ignoreDefaultArgs signature.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

@nachooya is attempting to deploy a commit to the Callstack Team on Vercel.

A member of the Team first needs to authorize it.

@V3RON V3RON self-requested a review May 13, 2026 15:32
@V3RON V3RON merged commit 56b9171 into callstackincubator:main May 13, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants