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

test: puppeteer.connect with using disconnects the browser #12371

Merged
merged 2 commits into from
May 2, 2024

Conversation

Lightning00Blade
Copy link
Collaborator

@Lightning00Blade Lightning00Blade commented Apr 30, 2024

There is one caveat:
When we spawn a browser and we disconnect it immediately, its connection is closed so we can't send further commands or close the process.
When that happens we need to use browser.close from the second connection to properly close the browser process.

@Lightning00Blade Lightning00Blade changed the title chore: puppeteer.connect with using disconnects the browser test: puppeteer.connect with using disconnects the browser Apr 30, 2024
@Lightning00Blade Lightning00Blade force-pushed the using-with-connected-browser-disconnects branch from 44bf8f1 to 7e35ba9 Compare April 30, 2024 16:41
@Lightning00Blade Lightning00Blade enabled auto-merge (squash) April 30, 2024 16:41
@OrKoN OrKoN force-pushed the using-with-connected-browser-disconnects branch from 7e35ba9 to 817828b Compare May 2, 2024 07:03
@Lightning00Blade Lightning00Blade merged commit dfb31f3 into main May 2, 2024
61 checks passed
@Lightning00Blade Lightning00Blade deleted the using-with-connected-browser-disconnects branch May 2, 2024 07:22
@@ -829,6 +829,8 @@ describe('Launcher specs', function () {
browserWSEndpoint,
protocol: browser.protocol,
});
remoteClose = remoteBrowser.close.bind(remoteBrowser);
console.log(remoteClose);
Copy link
Collaborator

Choose a reason for hiding this comment

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

forgotten console.log @Lightning00Blade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants