Skip to content

Commit 7431471

Browse files
authored
cherry-pick(#18802): doc: version 1.28 release notes (#18829)
1 parent ba1a1bd commit 7431471

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

docs/src/release-notes-js.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,68 @@ title: "Release notes"
44
toc_max_heading_level: 2
55
---
66

7+
## Version 1.28
8+
9+
### Playwright Tools
10+
11+
* **Record at Cursor in VSCode.** You can run the test, position the cursor at the end of the test and continue generating the test.
12+
13+
![New VSCode Extension](https://user-images.githubusercontent.com/746130/202005839-aba2eeba-217b-424d-8496-8b4f5fa72f41.png)
14+
15+
* **Live Locators in VSCode.** You can hover and edit locators in VSCode to get them highlighted in the opened browser.
16+
* **Live Locators in CodeGen.** Generate a locator for any element on the page using "Explore" tool.
17+
18+
![Locator Explorer](https://user-images.githubusercontent.com/746130/201796876-01567a0b-ca61-4a9d-b12b-04786c471671.png)
19+
20+
* **Codegen and Trace Viewer Dark Theme.** Automatically picked up from operating system settings.
21+
22+
![Dark Theme](https://user-images.githubusercontent.com/746130/201797969-603f74df-d7cf-4c56-befd-798dbd269796.png)
23+
24+
25+
### Test Runner
26+
27+
* Configure retries and test timeout for a file or a test with [`method: Test.describe.configure`].
28+
29+
```js
30+
// Each test in the file will be retried twice and have a timeout of 20 seconds.
31+
test.describe.configure({ retries: 2, timeout: 20_000 });
32+
test('runs first', async ({ page }) => {});
33+
test('runs second', async ({ page }) => {});
34+
```
35+
36+
* Use [`property: TestProject.snapshotPathTemplate`] and [`property: TestConfig.snapshotPathTemplate`] to configure a template controlling location of snapshots generated by [`method: PageAssertions.toHaveScreenshot#1`] and [`method: ScreenshotAssertions.toMatchSnapshot#1`].
37+
38+
```js
39+
// playwright.config.ts
40+
import type { PlaywrightTestConfig } from '@playwright/test';
41+
42+
const config: PlaywrightTestConfig = {
43+
testDir: './tests',
44+
snapshotPathTemplate: '{testDir}/__screenshots__/{testFilePath}/{arg}{ext}',
45+
};
46+
47+
export default config;
48+
```
49+
50+
### New APIs
51+
52+
- [`method: Locator.blur`]
53+
- [`method: Locator.clear`]
54+
- [`method: Android.launchServer`] and [`method: Android.connect`]
55+
- [`event: AndroidDevice.close`]
56+
57+
### Browser Versions
58+
59+
* Chromium 108.0.5359.29
60+
* Mozilla Firefox 106.0
61+
* WebKit 16.0
62+
63+
This version was also tested against the following stable channels:
64+
65+
* Google Chrome 107
66+
* Microsoft Edge 107
67+
68+
769
## Version 1.27
870

971
<div className="embed-youtube">

0 commit comments

Comments
 (0)