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

chore(roll): roll Playwright to 1.40.0 #2170

Merged
merged 1 commit into from
Nov 21, 2023
Merged

chore(roll): roll Playwright to 1.40.0 #2170

merged 1 commit into from
Nov 21, 2023

Conversation

mxschmitt
Copy link
Member

Fixes #2078

await self._channel.send(
"setInputFiles",
{
**filter_none(
Copy link
Member Author

Choose a reason for hiding this comment

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

I might follow up and do it like in .NET that we remove None by default in send().

{
"name": item["name"],
"mimeType": item["mimeType"],
"buffer": base64.b64encode(item["buffer"]).decode(),
Copy link
Member

Choose a reason for hiding this comment

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

why is it encode than decode, is it just the python way to do base64 encoding?

Copy link
Member Author

Choose a reason for hiding this comment

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

b64encode returns bytes which we need to decode to a str.

@mxschmitt mxschmitt merged commit d332719 into main Nov 21, 2023
37 of 40 checks passed
@mxschmitt mxschmitt deleted the roll/v1.40.0 branch November 21, 2023 17:17
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.

[Ports]: Backport client side changes
2 participants