v1.25.0
microsoft/playwrightv1.25.0Aug 11, 2022by aslushnikov
AI Summary
Major release adding robust VSCode extension features like the actions view and pick selector, enabling test steps to return values, and introducing CLI-based tracing.
Key Highlights
- New VSCode extension features: Playwright actions view, pick selector, record new test, and show & reuse browser.
- The `test.step` function now returns the value of the step body.
- New CLI flag: `npx playwright test --trace=on` to enable tracing.
- New test status: 'interrupted'.
- New property: `testCase.id` for reporters.
Breaking Changes
- Deprecation of macOS 10.15 support.
- Deprecation of Node.js 12 support.
New Features
- VSCode actions view.
- Pick selector feature.
- Record new test feature.
- Show & reuse browser feature.
- Test step return values.
- CLI tracing flag.
- Interrupted test status.
- TestCase ID property.
Full Release Notes
## VSCode Extension
- **New Playwright actions view**
<img width="246" alt="Playwright actions" src="https://user-images.githubusercontent.com/883973/184041259-812722f2-26e3-4561-a972-a1c7973f1332.png">
- **Pick selector**
You can pick selector right from a live page, before or after running a test
<img width="660" alt="Pick selector" src="https://user-images.githubusercontent.com/883973/184041462-288b9458-1650-4789-bd9e-b60d2ccd11dc.png">
- **Record new test**
Start recording where you left off with the new 'Record new test' feature.
- **Show & reuse browser**
Watch your tests running live & keep devtools open. Develop while continuously running tests.
<img width="660" alt="extension screenshot" src="https://user-images.githubusercontent.com/746130/184043183-1b3932ec-2ca9-4775-a10e-e6fbb20f9a95.jpg">
## Test Runner
* [`test.step(title, body)`](https://playwright.dev/docs/api/class-test#test-step) now returns the value of the step function:
```ts
test('should work', async ({ page }) => {
const pageTitle = await test.step('get title', async () => {
await page.goto('https://playwright.dev');
return await page.title();
});
console.log(pageTitle);
});
```
* Added [`test.describe.fixme(title, callback)`](https://playwright.dev/docs/api/class-test#test-describe-fixme).
* New `'interrupted'` test status.
* Enable tracing via CLI flag: `npx playwright test --trace=on`.
* New property [`testCase.id`](https://playwright.dev/docs/api/class-testcase#test-case-id) that can be use in reporters as a history ID.
## Announcements
* 🎁 We now ship Ubuntu 22.04 Jammy Jellyfish docker image: `mcr.microsoft.com/playwright:v1.25.0-jammy`.
* 🪦 This is the last release with macOS 10.15 support (deprecated as of 1.21).
* 🪦 This is the last release with Node.js 12 support, we recommend upgrading to Node.js LTS (16).
* ⚠️ Ubuntu 18 is now deprecated and will not be supported as of Dec 2022.
## Browser Versions
* Chromium 105.0.5195.19
* Mozilla Firefox 103.0
* WebKit 16.0
This version was also tested against the following stable channels:
* Google Chrome 104
* Microsoft Edge 104