Skip to content

chore(roll): roll Playwright to 1.40.0#2170

Merged
mxschmitt merged 1 commit intomainfrom
roll/v1.40.0
Nov 21, 2023
Merged

chore(roll): roll Playwright to 1.40.0#2170
mxschmitt merged 1 commit intomainfrom
roll/v1.40.0

Conversation

@mxschmitt
Copy link
Contributor

Fixes #2078

await self._channel.send(
"setInputFiles",
{
**filter_none(
Copy link
Contributor 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
Contributor 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
@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