mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: update release notes (#23165)
Signed-off-by: Andrey Lushnikov <aslushnikov@gmail.com> Signed-off-by: Max Schmitt <max@schmitt.mx> Co-authored-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
parent
2697e93663
commit
def82d1d27
@ -8,8 +8,10 @@ import LiteYouTube from '@site/src/components/LiteYouTube';
|
||||
|
||||
## Version 1.34
|
||||
|
||||
### New APIs
|
||||
### Highlights
|
||||
|
||||
* UI Mode now shows steps, fixtures and attachments:
|
||||

|
||||
* New property [`property: TestProject.teardown`] to specify a project that needs to run after this
|
||||
and all dependent projects have finished. Teardown is useful to cleanup any resources acquired by this project.
|
||||
|
||||
@ -46,6 +48,18 @@ import LiteYouTube from '@site/src/components/LiteYouTube';
|
||||
],
|
||||
});
|
||||
```
|
||||
* New method [`expect.configure`](./test-assertions.md#expectconfigure) to
|
||||
create pre-configured expect instance with its own defaults such as `timeout`
|
||||
and `soft`.
|
||||
|
||||
```js
|
||||
const slowExpect = expect.configure({ timeout: 10000 });
|
||||
await slowExpect(locator).toHaveText('Submit');
|
||||
|
||||
// Always do soft assertions.
|
||||
const softExpect = expect.configure({ soft: true });
|
||||
```
|
||||
|
||||
* New options `stderr` and `stdout` in [`property: TestConfig.webServer`] to configure output handling:
|
||||
|
||||
```js title="playwright.config.ts"
|
||||
|
@ -128,7 +128,10 @@ defaults such as `timeout` and `soft`.
|
||||
|
||||
```js
|
||||
const slowExpect = expect.configure({ timeout: 10000 });
|
||||
await slowExpect(locator).toHaveText('Submit);
|
||||
await slowExpect(locator).toHaveText('Submit');
|
||||
|
||||
// Always do soft assertions.
|
||||
const softExpect = expect.configure({ soft: true });
|
||||
```
|
||||
|
||||
## expect.poll
|
||||
|
Loading…
x
Reference in New Issue
Block a user