Skip to content

Commit

Permalink
cherry-pick(#23165): docs: update release notes
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Lushnikov <aslushnikov@gmail.com>
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Max Schmitt <max@schmitt.mx>
  • Loading branch information
aslushnikov and mxschmitt committed May 19, 2023
1 parent 552cba8 commit ef18287
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
16 changes: 15 additions & 1 deletion docs/src/release-notes-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
![UI Mode attachments](https://github.com/microsoft/playwright/assets/746130/1d280419-d79a-4a56-b2dc-54d631281d56)
* 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.

Expand Down Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion docs/src/test-assertions-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef18287

Please sign in to comment.