Skip to content

chore(deps): update dependency @playwright/test to ^1.62.0 (main) - #2848

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/main-playwright-monorepo
Open

chore(deps): update dependency @playwright/test to ^1.62.0 (main)#2848
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/main-playwright-monorepo

Conversation

@renovate

@renovate renovate Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@playwright/test (source) ^1.61.1^1.62.0 age confidence

Release Notes

microsoft/playwright (@​playwright/test)

v1.62.0

Compare Source

🧱 New component testing model

Component testing moves to a stories and galleries model.
A story wraps your component in one specific scenario — hard-coded props, mock data, providers — and a

gallery page that you serve renders stories on demand. The new fixtures.mount() fixture navigates
to the gallery, mounts a story by id, and returns a Locator scoped to the story's root element:

test('click should expand', async ({ mount }) => {
  const component = await mount('components/Expandable/Stateful');
  await component.getByRole('button').click();
  await expect(component.getByTestId('expanded')).toHaveValue('true');
});

Pass a story type as a template argument to type-check its props, and use update(props) /
unmount() on the returned locator to re-render or tear down within a test.

🛑 Cancel operations with AbortSignal

Most operations and web-first assertions now accept a signal option that takes an
AbortSignal, letting you
cancel long-running actions, navigations, waits, and assertions:

const controller = new AbortController();
setTimeout(() => controller.abort(), 1000);

await page.getByRole('button', { name: 'Submit' }).click({ signal: controller.signal });
await expect(page.getByText('Done')).toBeVisible({ signal: controller.signal });

Providing a signal does not disable the default timeout; pass timeout: 0 to disable it.

🖼️ WebP screenshots

expect(page).toHaveScreenshot() and expect(locator).toHaveScreenshot()
can now store snapshots in the WebP format — just give the snapshot a .webp name:

// Visual comparisons store the golden snapshot as lossless WebP.
await expect(page).toHaveScreenshot('homepage.webp');

// Standalone screenshots can trade quality for size with lossy WebP.
await page.screenshot({ path: 'homepage.webp', quality: 50 });

page.screenshot() and locator.screenshot() also accept webp as a type,
where quality 100 (the default) is lossless and lower values use lossy compression.

🧩 Custom test filtering with Reporter.preprocess()

New reporter.preprocess() hook runs after the configuration is resolved and before
reporter.onBegin(), letting a reporter mark individual tests as skipped, excluded,
fixed, or failing through a TestRun object:

class MyReporter {
  async preprocess({ config, suite, testRun }) {
    for (const test of suite.allTests()) {
      if (shouldSkip(test))
        testRun.skip(test);
    }
  }
}
🔁 Isolated retries

New testConfig.retryStrategy controls when failed tests are retried. The default
'immediate' retries as soon as a worker is free; 'isolated' runs all retries at the end,
one by one in a single worker, to minimize interference with the rest of the suite:

// playwright.config.ts
export default defineConfig({
  retries: 2,
  retryStrategy: 'isolated',
});
New APIs
Browser and Context
  • New option credentials includes the context's virtual WebAuthn Credentials (passkeys) in the storage state, so they can be persisted and re-seeded into later contexts.
Actions
  • New scroll option ("auto" | "none") on actions to opt out of Playwright's automatic scroll-into-view.
Network
Evaluation
Command line & MCP
Reporters
  • The HTML report's Merge files grouping — previously only a UI toggle — can now be enabled from the config with the new mergeFiles reporter option:
// playwright.config.ts
export default defineConfig({
  reporter: [['html', { mergeFiles: true }]],
});
Announcements
  • ⚠️ Debian 11 is not supported anymore.
Browser Versions
  • Chromium 151.0.7922.34
  • Mozilla Firefox 153.0
  • WebKit 26.5

This version was also tested against the following stable channels:

  • Google Chrome 151
  • Microsoft Edge 151

Configuration

📅 Schedule: (in timezone Europe/Berlin)

  • Branch creation
    • "every weekend"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added 3. to review Waiting for reviews dependencies Pull requests that update a dependency file labels Jul 25, 2026
@renovate
renovate Bot requested review from blizzz and enjeck as code owners July 25, 2026 06:37
@github-actions
github-actions Bot enabled auto-merge July 25, 2026 06:37
@renovate
renovate Bot force-pushed the renovate/main-playwright-monorepo branch from a57dc1e to 1c41140 Compare July 25, 2026 06:40
@renovate
renovate Bot force-pushed the renovate/main-playwright-monorepo branch from 1c41140 to d05e4b0 Compare July 26, 2026 08:26
@renovate renovate Bot changed the title chore(deps): update dependency @playwright/test to ^1.62.0-alpha-2026-07-18 (main) chore(deps): update dependency @playwright/test to ^1.62.0-alpha-2026-07-19 (main) Jul 26, 2026
@renovate
renovate Bot force-pushed the renovate/main-playwright-monorepo branch from d05e4b0 to be99ade Compare July 27, 2026 08:30
@renovate renovate Bot changed the title chore(deps): update dependency @playwright/test to ^1.62.0-alpha-2026-07-19 (main) chore(deps): update dependency @playwright/test to ^1.62.0-alpha-2026-07-20 (main) Jul 27, 2026
@renovate
renovate Bot force-pushed the renovate/main-playwright-monorepo branch from be99ade to 498e061 Compare July 28, 2026 08:52
@renovate renovate Bot changed the title chore(deps): update dependency @playwright/test to ^1.62.0-alpha-2026-07-20 (main) chore(deps): update dependency @playwright/test to ^1.62.0-alpha-2026-07-21 (main) Jul 28, 2026
@renovate
renovate Bot force-pushed the renovate/main-playwright-monorepo branch from 498e061 to ec6bf70 Compare July 29, 2026 08:28
@renovate renovate Bot changed the title chore(deps): update dependency @playwright/test to ^1.62.0-alpha-2026-07-21 (main) chore(deps): update dependency @playwright/test to ^1.62.0-alpha-2026-07-22 (main) Jul 29, 2026
@renovate
renovate Bot force-pushed the renovate/main-playwright-monorepo branch from ec6bf70 to ebd07fd Compare July 30, 2026 08:29
@renovate renovate Bot changed the title chore(deps): update dependency @playwright/test to ^1.62.0-alpha-2026-07-22 (main) chore(deps): update dependency @playwright/test to ^1.62.0-alpha-2026-07-23 (main) Jul 30, 2026
@renovate
renovate Bot force-pushed the renovate/main-playwright-monorepo branch from ebd07fd to 61707e6 Compare July 30, 2026 19:54
@renovate renovate Bot changed the title chore(deps): update dependency @playwright/test to ^1.62.0-alpha-2026-07-23 (main) chore(deps): update dependency @playwright/test to ^1.62.0-beta-1784806523000 (main) Jul 30, 2026
@renovate
renovate Bot force-pushed the renovate/main-playwright-monorepo branch from 61707e6 to 60fc6c6 Compare July 30, 2026 21:48
@renovate renovate Bot changed the title chore(deps): update dependency @playwright/test to ^1.62.0-beta-1784806523000 (main) chore(deps): update dependency @playwright/test to ^1.62.0-beta-1784842988000 (main) Jul 30, 2026
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate
renovate Bot force-pushed the renovate/main-playwright-monorepo branch from 60fc6c6 to fb16cf0 Compare August 1, 2026 00:29
@renovate renovate Bot changed the title chore(deps): update dependency @playwright/test to ^1.62.0-beta-1784842988000 (main) chore(deps): update dependency @playwright/test to ^1.62.0 (main) Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants