Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 21, 2025

This PR contains the following updates:

Package Change Age Confidence
@playwright/experimental-ct-core (source) 1.50.1 -> 1.56.0 age confidence
@playwright/test (source) 1.50.1 -> 1.56.0 age confidence

Release Notes

microsoft/playwright (@​playwright/experimental-ct-core)

v1.56.0

Compare Source

v1.55.1

Compare Source

Highlights

#​37479 - [Bug]: Upgrade Chromium to 140.0.7339.186.
#​37147 - [Regression]: Internal error: step id not found.
#​37146 - [Regression]: HTML reporter displays a broken chip link when there are no projects.
#​37137 - Revert "fix(a11y): track inert elements as hidden".

Browser Versions

  • Chromium 140.0.7339.186
  • Mozilla Firefox 141.0
  • WebKit 26.0

This version was also tested against the following stable channels:

  • Google Chrome 139
  • Microsoft Edge 139

v1.55.0

Compare Source

v1.54.2

Compare Source

Highlights

https://github.com/microsoft/playwright/issues/36714 - [Regression]: Codegen is not able to launch in Administrator Terminal on Windows (ProtocolError: Protocol error)https://github.com/microsoft/playwright/issues/368288 - [Regression]: Playwright Codegen keeps spamming with selected optiohttps://github.com/microsoft/playwright/issues/3681010 - [Regression]: Starting Codegen with target language doesn't work anymore

Browser Versions

  • Chromium 139.0.7258.5
  • Mozilla Firefox 140.0.2
  • WebKit 26.0

This version was also tested against the following stable channels:

  • Google Chrome 140
  • Microsoft Edge 140

v1.54.1

Compare Source

v1.54.0

Compare Source

Highlights

  • New cookie property partitionKey in browserContext.cookies() and browserContext.addCookies(). This property allows to save and restore partitioned cookies. See CHIPS MDN article for more information. Note that browsers have different support and defaults for cookie partitioning.

  • New option noSnippets to disable code snippets in the html report.

    import { defineConfig } from '@​playwright/test';
    
    export default defineConfig({
      reporter: [['html', { noSnippets: true }]]
    });
  • New property location in test annotations, for example in testResult.annotations and testInfo.annotations. It shows where the annotation like test.skip or test.fixme was added.

Command Line

  • New option --user-data-dir in multiple commands. You can specify the same user data dir to reuse browsing state, like authentication, between sessions.

    npx playwright codegen --user-data-dir=./user-data
  • Option -gv has been removed from the npx playwright test command. Use --grep-invert instead.

  • npx playwright open does not open the test recorder anymore. Use npx playwright codegen instead.

Miscellaneous

  • Support for Node.js 16 has been removed.
  • Support for Node.js 18 has been deprecated, and will be removed in the future.

Browser Versions

  • Chromium 139.0.7258.5
  • Mozilla Firefox 140.0.2
  • WebKit 26.0

This version was also tested against the following stable channels:

  • Google Chrome 140
  • Microsoft Edge 140

v1.53.2

Compare Source

v1.53.1

Compare Source

v1.53.0

Compare Source

Trace Viewer and HTML Reporter Updates

  • New Steps in Trace Viewer and HTML reporter: New Trace Viewer Steps

  • New option in 'html' reporter to set the title of a specific test run:

    import { defineConfig } from '@​playwright/test';
    
    export default defineConfig({
      reporter: [['html', { title: 'Custom test run #​1028' }]]
    });

Miscellaneous

  • New option kind in testInfo.snapshotPath() controls which snapshot path template is used.

  • New method locator.describe() to describe a locator. Used for trace viewer and reports.

    const button = page.getByTestId('btn-sub').describe('Subscribe button');
    await button.click();
  • npx playwright install --list will now list all installed browsers, versions and locations.

Browser Versions

  • Chromium 138.0.7204.4
  • Mozilla Firefox 139.0
  • WebKit 18.5

This version was also tested against the following stable channels:

  • Google Chrome 137
  • Microsoft Edge 137

v1.52.0

Compare Source

Highlights
  • New method expect(locator).toContainClass() to ergonomically assert individual class names on the element.

    await expect(page.getByRole('listitem', { name: 'Ship v1.52' })).toContainClass('done');
  • Aria Snapshots got two new properties: /children for strict matching and /url for links.

    await expect(locator).toMatchAriaSnapshot(`
      - list
        - /children: equal
        - listitem: Feature A
        - listitem:
          - link "Feature B":
            - /url: "https://playwright.dev"
    `);
Test Runner
  • New property testProject.workers allows to specify the number of concurrent worker processes to use for a test project. The global limit of property testConfig.workers still applies.
  • New testConfig.failOnFlakyTests option to fail the test run if any flaky tests are detected, similarly to --fail-on-flaky-tests. This is useful for CI/CD environments where you want to ensure that all tests are stable before deploying.
  • New property testResult.annotations contains annotations for each test retry.
Miscellaneous
  • New option maxRedirects in apiRequest.newContext() to control the maximum number of redirects.
  • HTML reporter now supports NOT filtering via !@​my-tag or !my-file.spec.ts or !p:my-project.
Breaking Changes
  • Changes to glob URL patterns in methods like page.route():
    • ? wildcard is not supported any more, it will always match question mark ? character.
    • Ranges/sets [] are not supported anymore. We recommend using regular expressions instead.
  • Method route.continue() does not allow to override the Cookie header anymore. If a Cookie header is provided, it will be ignored, and the cookie will be loaded from the browser's cookie store. To set custom cookies, use browserContext.addCookies().
  • macOS 13 is now deprecated and will no longer receive WebKit updates. Please upgrade to a more recent macOS version to continue benefiting from the latest WebKit improvements.
Browser Versions
  • Chromium 136.0.7103.25
  • Mozilla Firefox 137.0
  • WebKit 18.4

This version was also tested against the following stable channels:

  • Google Chrome 135
  • Microsoft Edge 135

v1.51.1

Compare Source

Highlights

#​35093 - [Regression]: TimeoutOverflowWarning: 2149630.634 does not fit into a 32-bit signed integer
#​35138 - [Regression]: TypeError: Cannot read properties of undefined (reading 'expectInfo')

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

v1.51.0

Compare Source

StorageState for indexedDB

  • New option indexedDB for browserContext.storageState() 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:

    // tests/auth.setup.ts
    import { test as setup, expect } from '@​playwright/test';
    import path from 'path';
    
    const authFile = path.join(__dirname, '../playwright/.auth/user.json');
    
    setup('authenticate', async ({ page }) => {
      await page.goto('/');
      // ... perform authentication steps ...
    
      // make sure to save indexedDB
      await page.context().storageState({ path: authFile, indexedDB: true });
    });

Copy prompt

New "Copy prompt" button on errors in the HTML report, trace viewer and UI mode. Click to copy a pre-filled LLM prompt that contains the error message and useful context for fixing the error.

Copy prompt

Filter visible elements

New option visible for locator.filter() allows matching only visible elements.

// example.spec.ts
test('some test', async ({ page }) => {
  // Ignore invisible todo items.
  const todoItems = page.getByTestId('todo-item').filter({ visible: true });
  // Check there are exactly 3 visible ones.
  await expect(todoItems).toHaveCount(3);
});

Git information in HTML report

Set option testConfig.captureGitInfo to capture git information into testConfig.metadata.

// playwright.config.ts
import { defineConfig } from '@​playwright/test';

export default defineConfig({
  captureGitInfo: { commit: true, diff: true }
});

HTML report will show this information when available:

Git information in the report

Test Step improvements

A new TestStepInfo object is now available in test steps. You can add step attachments or skip the step under some conditions.

test('some test', async ({ page, isMobile }) => {
  // Note the new "step" argument:
  await test.step('here is my step', async step => {
    step.skip(isMobile, 'not relevant on mobile layouts');

    // ...
    await step.attach('my attachment', { body: 'some text' });
    // ...
  });
});

Miscellaneous

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 these updates again.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) April 21, 2025 14:55
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch 9 times, most recently from 1d90f76 to d7f5752 Compare April 28, 2025 07:15
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch 6 times, most recently from da9ac5e to 514aad0 Compare May 6, 2025 07:20
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch 9 times, most recently from 125c358 to 675418c Compare May 13, 2025 17:19
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch 5 times, most recently from 3f7c691 to 9b3ed6b Compare May 18, 2025 06:10
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from f224cd8 to c589950 Compare June 10, 2025 23:27
@renovate renovate bot changed the title build: 📦 update playwright monorepo to v1.52.0 build: 📦 update playwright monorepo to v1.53.0 Jun 10, 2025
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch 4 times, most recently from c3737d9 to cadde59 Compare June 18, 2025 02:48
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from cadde59 to cb2cf70 Compare June 18, 2025 22:35
@renovate renovate bot changed the title build: 📦 update playwright monorepo to v1.53.0 build: 📦 update playwright monorepo to v1.53.1 Jun 18, 2025
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch 5 times, most recently from 42d04d9 to 7677c8f Compare June 25, 2025 02:05
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch 2 times, most recently from fa06cb7 to 6e08b38 Compare June 30, 2025 21:41
@renovate renovate bot changed the title build: 📦 update playwright monorepo to v1.53.1 build: 📦 update playwright monorepo to v1.53.2 Jun 30, 2025
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 6e08b38 to 8e31871 Compare July 10, 2025 17:00
@renovate renovate bot changed the title build: 📦 update playwright monorepo to v1.53.2 build: 📦 update playwright monorepo to v1.54.0 Jul 10, 2025
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 8e31871 to 8f2b184 Compare July 11, 2025 18:56
@renovate renovate bot changed the title build: 📦 update playwright monorepo to v1.54.0 build: 📦 update playwright monorepo to v1.54.1 Jul 11, 2025
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 8f2b184 to cb14b88 Compare August 1, 2025 07:16
@renovate renovate bot changed the title build: 📦 update playwright monorepo to v1.54.1 build: 📦 update playwright monorepo to v1.54.2 Aug 1, 2025
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from cb14b88 to 958496a Compare August 20, 2025 14:56
@renovate renovate bot changed the title build: 📦 update playwright monorepo to v1.54.2 build: 📦 update playwright monorepo to v1.55.0 Aug 20, 2025
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 958496a to c47a74b Compare September 9, 2025 09:04
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from c47a74b to a769d1b Compare September 23, 2025 13:51
@renovate renovate bot changed the title build: 📦 update playwright monorepo to v1.55.0 build: 📦 update playwright monorepo to v1.55.1 Sep 23, 2025
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from a769d1b to 309d34f Compare October 6, 2025 18:37
@renovate renovate bot changed the title build: 📦 update playwright monorepo to v1.55.1 build: 📦 update playwright monorepo to v1.56.0 Oct 6, 2025
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.

0 participants