Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: include headlessness as a launch argument to browser #16898

Conversation

aslushnikov
Copy link
Collaborator

No description provided.

@@ -116,7 +116,7 @@ export const test = _baseTest.extend<TestFixtures, WorkerFixtures>({
const browser = await playwright[browserName].connect(connectOptions.wsEndpoint, {
headers: {
'x-playwright-browser': browserName,
'x-playwright-launch-options': JSON.stringify(launchOptions),
'x-playwright-launch-options': JSON.stringify({ ...launchOptions, headless, channel }),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not override user values with undefined here. Take a look at this code.

@aslushnikov aslushnikov merged commit 38f2a5d into microsoft:main Aug 31, 2022
@aslushnikov aslushnikov deleted the pass-headless-argument-to-browser-connect branch August 31, 2022 17:26
dgozman pushed a commit to dgozman/playwright that referenced this pull request Aug 31, 2022
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.

None yet

2 participants