mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
doc: version 1.28 release notes (#18802)
This commit is contained in:
parent
20d4d4f4b4
commit
250bc9fb2f
@ -4,6 +4,68 @@ title: "Release notes"
|
|||||||
toc_max_heading_level: 2
|
toc_max_heading_level: 2
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Version 1.28
|
||||||
|
|
||||||
|
### Playwright Tools
|
||||||
|
|
||||||
|
* **Record at Cursor in VSCode.** You can run the test, position the cursor at the end of the test and continue generating the test.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
* **Live Locators in VSCode.** You can hover and edit locators in VSCode to get them highlighted in the opened browser.
|
||||||
|
* **Live Locators in CodeGen.** Generate a locator for any element on the page using "Explore" tool.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
* **Codegen and Trace Viewer Dark Theme.** Automatically picked up from operating system settings.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
### Test Runner
|
||||||
|
|
||||||
|
* Configure retries and test timeout for a file or a test with [`method: Test.describe.configure`].
|
||||||
|
|
||||||
|
```js
|
||||||
|
// Each test in the file will be retried twice and have a timeout of 20 seconds.
|
||||||
|
test.describe.configure({ retries: 2, timeout: 20_000 });
|
||||||
|
test('runs first', async ({ page }) => {});
|
||||||
|
test('runs second', async ({ page }) => {});
|
||||||
|
```
|
||||||
|
|
||||||
|
* 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`].
|
||||||
|
|
||||||
|
```js
|
||||||
|
// playwright.config.ts
|
||||||
|
import type { PlaywrightTestConfig } from '@playwright/test';
|
||||||
|
|
||||||
|
const config: PlaywrightTestConfig = {
|
||||||
|
testDir: './tests',
|
||||||
|
snapshotPathTemplate: '{testDir}/__screenshots__/{testFilePath}/{arg}{ext}',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default config;
|
||||||
|
```
|
||||||
|
|
||||||
|
### New APIs
|
||||||
|
|
||||||
|
- [`method: Locator.blur`]
|
||||||
|
- [`method: Locator.clear`]
|
||||||
|
- [`method: Android.launchServer`] and [`method: Android.connect`]
|
||||||
|
- [`event: AndroidDevice.close`]
|
||||||
|
|
||||||
|
### Browser Versions
|
||||||
|
|
||||||
|
* Chromium 108.0.5359.29
|
||||||
|
* Mozilla Firefox 106.0
|
||||||
|
* WebKit 16.0
|
||||||
|
|
||||||
|
This version was also tested against the following stable channels:
|
||||||
|
|
||||||
|
* Google Chrome 107
|
||||||
|
* Microsoft Edge 107
|
||||||
|
|
||||||
|
|
||||||
## Version 1.27
|
## Version 1.27
|
||||||
|
|
||||||
<div className="embed-youtube">
|
<div className="embed-youtube">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user