Skip to content

chore(deps): update dependency microsoft.playwright to 1.51.0#2111

Merged
thomhurst merged 1 commit into
mainfrom
renovate/microsoft.playwright-1.x
Mar 18, 2025
Merged

chore(deps): update dependency microsoft.playwright to 1.51.0#2111
thomhurst merged 1 commit into
mainfrom
renovate/microsoft.playwright-1.x

Conversation

@thomhurst

Copy link
Copy Markdown
Owner

This PR contains the following updates:

Package Type Update Change
Microsoft.Playwright nuget minor 1.50.0 -> 1.51.0

Release Notes

microsoft/playwright-dotnet (Microsoft.Playwright)

v1.51.0

Highlights

  • New option IndexedDB for BrowserContext.StorageStateAsync() allows to save and restore IndexedDB contents. Useful when your application uses IndexedDB API to store authentication tokens, like Firebase Authentication.

    Here is an example following the authentication guide:

    // Save storage state into the file. Make sure to include IndexedDB.
    await context.StorageStateAsync(new()
    {
        Path = "../../../playwright/.auth/state.json",
        IndexedDB = true
    });
    
    // Create a new context with the saved storage state.
    var context = await browser.NewContextAsync(new()
    {
        StorageStatePath = "../../../playwright/.auth/state.json"
    });
  • New option Visible for locator.filter() allows matching only visible elements.

    // Ignore invisible todo items.
    var todoItems = Page.GetByTestId("todo-item").Filter(new() { Visible = true });
    // Check there are exactly 3 visible ones.
    await Expect(todoItems).ToHaveCountAsync(3);
  • New option Contrast for methods page.emulateMedia() and Browser.NewContextAsync() allows to emulate the prefers-contrast media feature.

  • New option FailOnStatusCode makes all fetch requests made through the APIRequestContext throw on response codes other than 2xx and 3xx.

Browser Versions

  • Chromium 134.0.6998.35
  • Mozilla Firefox 135.0
  • WebKit 18.4

This version was also tested against the following stable channels:

  • Google Chrome 133
  • Microsoft Edge 133

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@thomhurst thomhurst added dependencies Pull requests that update a dependency file MINOR renovate-bot labels Mar 18, 2025
@thomhurst thomhurst enabled auto-merge (squash) March 18, 2025 10:23
@thomhurst thomhurst force-pushed the renovate/microsoft.playwright-1.x branch from 0cd9263 to 1c574db Compare March 18, 2025 19:41
@thomhurst thomhurst force-pushed the renovate/microsoft.playwright-1.x branch from 1c574db to de0dee2 Compare March 18, 2025 21:21
@thomhurst thomhurst disabled auto-merge March 18, 2025 21:38
@thomhurst thomhurst merged commit 45621b8 into main Mar 18, 2025
@thomhurst thomhurst deleted the renovate/microsoft.playwright-1.x branch March 18, 2025 21:38
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 MINOR renovate-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants