Bump playwright from 1.35.1 to 1.39.0 in /browser
Bumps playwright from 1.35.1 to 1.39.0.
Release notes
Sourced from playwright's releases.
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'; export const expect = baseExpect.extend({ async toHaveAmount(locator: Locator, expected: number, options?: { timeout?: number }) { // ... see documentation for how to write matchers. }, }); test('pass', async ({ page }) => { await expect(page.getByTestId('cart')).toHaveAmount(5); });
See the documentation for a full example.
Merge test fixtures
You can now merge test fixtures from multiple files or modules:
import { mergeTests } from '@playwright/test'; import { test as dbTest } from 'database-test-utils'; import { test as a11yTest } from 'a11y-test-utils'; export const test = mergeTests(dbTest, a11yTest);
import { test } from './fixtures'; test('passes', async ({ database, page, a11y }) => { // use database and a11y fixtures. });
Merge custom expect matchers
You can now merge custom expect matchers from multiple files or modules:
import { mergeTests, mergeExpects } from '@playwright/test'; import { test as dbTest, expect as dbExpect } from 'database-test-utils'; import { test as a11yTest, expect as a11yExpect } from 'a11y-test-utils'; export const test = mergeTests(dbTest, a11yTest); </tr></table>
... (truncated)
Commits
-
3049d99
cherry-pick(#27555): chore: composed->merge -
ae31f58
chore: mark 1.39.0 (#27550) -
5313514
cherry-pick(#27549): docs: update release notes for 1.39 -
0d168dc
chore: release notes for 1.39 (#27537) -
4f9b285
chore: update WebKit version to 17.4 (#27536) -
d11380e
docs: improve test.step documentation (#27535) -
9edb811
feat(chromium-tip-of-tree): roll to r1158 (#27533) -
d05c865
test: unflake a few tests (#27519) -
2776d84
docs: how to update playwright in python (#27527) -
2407041
fix(chromium): avoid premature continue of redirects (#27520) - Additional commits viewable in compare view
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