Skip to content

Bump playwright from 1.35.1 to 1.40.0 in /browser

Bumps playwright from 1.35.1 to 1.40.0.

Release notes

Sourced from playwright's releases.

v1.40.0

Test Generator Update

Playwright Test Generator

New tools to generate assertions:

Here is an example of a generated test with assertions:

import { test, expect } from '@playwright/test';
test('test', async ({ page }) => {
await page.goto('https://playwright.dev/');
await page.getByRole('link', { name: 'Get started' }).click();
await expect(page.getByLabel('Breadcrumbs').getByRole('list')).toContainText('Installation');
await expect(page.getByLabel('Search')).toBeVisible();
await page.getByLabel('Search').click();
await page.getByPlaceholder('Search docs').fill('locator');
await expect(page.getByPlaceholder('Search docs')).toHaveValue('locator');
});

New APIs

Other Changes

Browser Versions

  • Chromium 120.0.6099.28
  • Mozilla Firefox 119.0
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 119
  • Microsoft Edge 119

v1.39.0

Add custom matchers to your expect

You can extend Playwright assertions by providing custom matchers. These matchers will be available on the expect object.

import { expect as baseExpect } from '@playwright/test';
</tr></table> 

... (truncated)

Commits
  • b894916 cherry-pick(#28198): feat(recorder): UX updates for assertion tools (#28202)
  • 59e8f48 chore: mark v1.40.0 (#28199)
  • 85438ed test: Intl.ListFormat is working in playwright all browsers (#28178)
  • aec4399 docs: release notes for v1.40 (#28175)
  • 25b9c4e chore: do not lose error name for js errors (#28177)
  • 4575c9a chore(logs): Add new log level to capture client-server message's metadata in...
  • 80bab8a fix(electron/android): re-add Element.prototype.checkVisibility check (#28173)
  • 7ffcb42 test: fix 'exposeFunction should not leak' in video mode (#28169)
  • 0867c3c feat(chromium): roll to r1091 (#28171)
  • 1c8ceb0 fix(html-reporter): Include specified host and port in the logged instruction...
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by dgozman-ms, a new releaser for playwright since your current version.



Dependabot commands
You can trigger Dependabot actions by commenting on this MR
  • $dependabot rebase will rebase this MR
  • $dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts

Merge request reports