-
Notifications
You must be signed in to change notification settings - Fork 932
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
chore(roll): roll Playwright to 1.48.0-beta-1728034490000 #2584
Conversation
@@ -280,6 +287,21 @@ def listen(self, factory: http.HTTPFactory) -> None: | |||
|
|||
|
|||
class WebSocketProtocol(WebSocketServerProtocol): | |||
def __init__(self, *args: Any, **kwargs: Any) -> None: | |||
super().__init__(*args, **kwargs) | |||
self.events = EventEmitter() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this basically rewrites onMessage and onClose to an easier to consume pyee event emitter.
@@ -405,7 +404,8 @@ async def _inner_fetch( | |||
"fetch", | |||
{ | |||
"url": url, | |||
"params": params_to_protocol(params), | |||
"params": object_to_array(params) if isinstance(params, dict) else None, | |||
"encodedParams": params if isinstance(params, str) else None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't seen this change in .net or java roll for some reason. Could you please double check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Java we don't allow passing query params as strings while in JS/Python/.NET we do. There is no .NET roll yet for this release after we moved the merge logic to the server side.
In Java we have:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather not do it in the ports to keep the API surface smaller, especially if there is no user request for this.
from tests.server import Server, WebSocketProtocol | ||
|
||
|
||
async def assert_equal( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we need expect.poll()
in python :)
Fixes #2580