Skip to content

fix(fetch): accept float values for data - #3209

Open
Alexandre Kohler (kwy404) wants to merge 1 commit into
microsoft:mainfrom
kwy404:fix-fetch-float-data
Open

Alexandre Kohler (kwy404) wants to merge 1 commit into
microsoft:mainfrom
kwy404:fix-fetch-float-data

Conversation

@kwy404

Copy link
Copy Markdown

Summary

  • APIRequestContext.fetch() accepted int and bool values for data but raised Unsupported 'data' type: <class 'float'> for floats, while Playwright for JS accepts any number. Floats are now JSON serialized like the other scalar types.
  • Added a float case to test_should_serialize_request_data.

@kwy404

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

This branch has not been deployed

No deployments
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.

1 participant