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

⬆️ 🤖 Dependencies: Update playwright requirement from 1.47.0 to 1.48.0 #721

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 4, 2024

Updates the requirements on playwright to permit the latest version.

Release notes

Sourced from playwright's releases.

v1.48.0

WebSocket routing

New methods page.route_web_socket() and browser_context.route_web_socket() allow to intercept, modify and mock WebSocket connections initiated in the page. Below is a simple example that mocks WebSocket communication by responding to a "request" with a "response".

def message_handler(ws: WebSocketRoute, message: Union[str, bytes]):
  if message == "request":
    ws.send("response")
page.route_web_socket("/ws", lambda ws: ws.on_message(
lambda message: message_handler(ws, message)
))

See WebSocketRoute for more details.

UI updates

  • New "copy" buttons for annotations and test location in the HTML report.
  • Route method calls like route.fulfill() are not shown in the report and trace viewer anymore. You can see which network requests were routed in the network tab instead.
  • New "Copy as cURL" and "Copy as fetch" buttons for requests in the network tab.

Miscellaneous

  • New method page.request_gc() may help detect memory leaks.
  • Requests made by APIRequestContext now record detailed timing and security information in the HAR.
  • This version adds support for Python 3.13
  • This version is the last version supporting Python 3.8

Browser Versions

  • Chromium 130.0.6723.19
  • Mozilla Firefox 130.0
  • WebKit 18.0

This version was also tested against the following stable channels:

  • Google Chrome 129
  • Microsoft Edge 129
Commits
  • b807406 chore(roll): roll Playwright to 1.48.0-beta-1728034490000 (#2584)
  • ece2d01 build(deps): bump mypy from 1.11.2 to 1.12.0 (#2598)
  • a5c347f build(deps): bump objgraph from 3.6.1 to 3.6.2 (#2599)
  • 4d31bdc fix(asyncio): already cancelled tasks ends up in 'InvalidStateError: invalid ...
  • a71a0ce chore: support Python 3.13 (#2589)
  • 5f26616 chore: update linters (pyright/mypy/pre-commit) (#2588)
  • d9cdfbb build(deps): bump greenlet from 3.1.0 to 3.1.1 (#2568)
  • 65a86d9 build(deps): bump setuptools from 74.0.0 to 75.1.0 (#2560)
  • a5c5441 build(deps): bump types-requests from 2.32.0.20240712 to 2.32.0.20240914 (#2561)
  • 4ebe5d4 build(deps): bump pytest from 8.3.2 to 8.3.3 (#2559)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by Sourcery

Build:

  • Update the Playwright dependency from version 1.47.0 to 1.48.0 in the project configuration.

Updates the requirements on [playwright](https://github.com/Microsoft/playwright-python) to permit the latest version.
- [Release notes](https://github.com/Microsoft/playwright-python/releases)
- [Commits](microsoft/playwright-python@v1.47.0...v1.48.0)

---
updated-dependencies:
- dependency-name: playwright
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 4, 2024
Copy link

sourcery-ai bot commented Nov 4, 2024

Reviewer's Guide by Sourcery

This PR updates the Playwright dependency from version 1.47.0 to 1.48.0. The update brings new features like WebSocket routing capabilities, UI improvements in HTML reports, and adds support for Python 3.13 while marking the last version supporting Python 3.8.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Update Playwright dependency version
  • Bump version from 1.47.0 to 1.48.0
  • Add support for Python 3.13
  • Mark as last version supporting Python 3.8
  • Update browser versions (Chromium 130.0.6723.19, Firefox 130.0, WebKit 18.0)
  • Add new WebSocket routing capabilities
  • Improve HTML report UI with new copy buttons and network request features
  • Add new page.request_gc() method for memory leak detection
  • Enhance APIRequestContext with detailed timing and security information in HAR
pyproject.toml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

sweep-ai bot commented Nov 4, 2024

Hey @dependabot[bot], here is an example of how you can ask me to improve this pull request:

@Sweep Add unit tests for the new WebSocket routing functionality, specifically testing:
- Basic WebSocket message handling with page.route_web_socket()
- WebSocket connection interception
- Message modification scenarios
- Error handling cases for WebSocket routes

📖 For more information on how to use Sweep, please read our documentation.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

@mraniki mraniki closed this Nov 4, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 4, 2024

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/pip/dev/playwright-1.48.0 branch November 4, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant