Bump playwright from 1.35.1 to 1.40.1 in /browser
Bumps playwright from 1.35.1 to 1.40.1.
Release notes
Sourced from playwright's releases.
v1.40.1
Highlights
microsoft/playwright#28319 - [REGRESSION]: Version 1.40.0 Produces corrupted traces microsoft/playwright#28371 - [BUG] The color of the 'ok' text did not change to green in the vs code test results section microsoft/playwright#28321 - [BUG] Ambiguous test outcome and status for serial mode microsoft/playwright#28362 - [BUG] Merging blobs ends up in Error: Cannot create a string longer than 0x1fffffe8 characters microsoft/playwright#28239 - fix: collect all errors in removeFolders
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.40.0
Test Generator Update
New tools to generate assertions:
- "Assert visibility" tool generates expect(locator).toBeVisible().
- "Assert value" tool generates expect(locator).toHaveValue(value).
- "Assert text" tool generates expect(locator).toContainText(text).
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
- Option
reason
in page.close(), browserContext.close() and browser.close(). Close reason is reported for all operations interrupted by the closure.- Option
firefoxUserPrefs
in browserType.launchPersistentContext(userDataDir).Other Changes
... (truncated)
Commits
-
2689420
chore: mark 1.40.1 (#28380) -
efc7ec1
cherry-pick(#28366): fix: parse report.jsonl without creating large s… (#28378) -
43798af
cherry-pick(#28360): Revert "chore(test runner): remove fake skipped test res... -
18478e3
cherry-pick(#28365): chore: do not add to the internal action logs -
d19c948
cherry-pick(#28302): docs: Update codegen documentation and screenshots (#28311) -
480ae58
cherry-pick(#28276): docs(trace-viewer): fix <details><summary> syntax (#28297) -
8dea604
cherry-pick(#28267): docs(python): add ignoreCase to NotToHaveAttribute (#28273) -
65859fa
cherry-pick(#28271): docs(release-notes): 1.40 nits (#28274) -
e27bc9f
cherry-pick(#28239): fix: collect all errors in removeFolders (#28243) -
b894916
cherry-pick(#28198): feat(recorder): UX updates for assertion tools (#28202) - 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