Skip to content

fix(pause): ignore page.pause on the server#23417

Merged
dgozman merged 1 commit intomicrosoft:mainfrom
dgozman:ignore-pause-when-remote
Jun 2, 2023
Merged

fix(pause): ignore page.pause on the server#23417
dgozman merged 1 commit intomicrosoft:mainfrom
dgozman:ignore-pause-when-remote

Conversation

@dgozman
Copy link
Copy Markdown
Collaborator

@dgozman dgozman commented Jun 1, 2023

Fixes #23051.

if (require('inspector').url())
return;
if (this._connection.isRemote())
return;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Wouldn't any console.log about skipped execution be helpful in this case? Then the user will know that there are some unexpected pauses in the code.

@dgozman dgozman force-pushed the ignore-pause-when-remote branch from 8a1b98f to 3f373bf Compare June 2, 2023 04:11
@dgozman dgozman changed the title fix(pause): ignore page.pause when connection is remote fix(pause): ignore page.pause on the server Jun 2, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2023

"tests 1" report.

@dgozman dgozman merged commit 835f14d into microsoft:main Jun 2, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2023

"tests 1" report.

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.

[Feature] Disable pause() when running playwright tests on remote browsers

4 participants